Changeset 2905836
- Timestamp:
- 04/28/2023 06:36:15 PM (3 years ago)
- Location:
- shop-2-api/trunk
- Files:
-
- 7 edited
-
assets/shop2api_order.js (modified) (2 diffs)
-
includes/Api/Shop2ApiConnect.php (modified) (2 diffs)
-
includes/Base/AjaxButtonActions.php (modified) (1 diff)
-
includes/Base/EnqueueWC.php (modified) (3 diffs)
-
readme.txt (modified) (3 diffs)
-
shop-2-api.php (modified) (2 diffs)
-
templates/bol-order-sync.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
shop-2-api/trunk/assets/shop2api_order.js
r2885872 r2905836 103 103 function retrieve_from_shop2api() { 104 104 let json_data = settings.orders_data; 105 debugger;106 105 if (json_data.length !== 0) { 107 106 let order_data = json_data[0]; … … 112 111 $('#orders-paid').prop('checked', order_data.paid); 113 112 $('#orders-use-bol-price').prop('checked', order_data.use_bol_price); 113 $('#orders-stock-sync').prop('checked', order_data.sync_stock); 114 114 $('#orders-email').val(order_data.order_email); 115 115 -
shop-2-api/trunk/includes/Api/Shop2ApiConnect.php
r2900323 r2905836 458 458 public function set_order_data( 459 459 $active, $status, $paid, $woocommerce_ean_field, $woocommerce_ean_category, $combideal_active, 460 $combideal_ean_field, $combideal_ean_category, $order_email, $use_bol_price 460 $combideal_ean_field, $combideal_ean_category, $order_email, $use_bol_price, $stock_sync 461 461 ) 462 462 { … … 485 485 "order_email" => $order_email, 486 486 "use_bol_price" => ($use_bol_price != ''), 487 "sync_stock" => ($stock_sync != ''), 487 488 ]; 488 489 -
shop-2-api/trunk/includes/Base/AjaxButtonActions.php
r2885872 r2905836 312 312 $_POST['orders-active'], $_POST['orders-status'], $_POST['orders-paid'], $_POST['orders-ean-value'], 313 313 $_POST['orders-ean'], $_POST['orders-combideals-active'], $_POST['orders-combideal-ean-value'], 314 $_POST['orders-combideal-ean'], $_POST['orders-email'], $_POST['orders-use-bol-price'] 314 $_POST['orders-combideal-ean'], $_POST['orders-email'], $_POST['orders-use-bol-price'], 315 $_POST['orders-stock-sync'] 315 316 ); 316 317 -
shop-2-api/trunk/includes/Base/EnqueueWC.php
r2900323 r2905836 33 33 add_action('pre_get_posts', array($this, 'event_column_orderby')); 34 34 add_action('admin_enqueue_scripts', array($this, 'enqueue_items')); 35 add_action( 'woocommerce_product_quick_edit_end', array($this, 'woocommerce_product_quick_edit_end'), 10, 0 );36 add_action( 'woocommerce_product_quick_edit_save', array($this, 'woocommerce_product_quick_edit_save'), 10, 1 );35 // add_action( 'woocommerce_product_quick_edit_end', array($this, 'woocommerce_product_quick_edit_end'), 10, 0 ); 36 // add_action( 'woocommerce_product_quick_edit_save', array($this, 'woocommerce_product_quick_edit_save'), 10, 1 ); 37 37 add_action( 'woocommerce_product_after_variable_attributes', array($this, 'variation_settings_fields'), 10, 3 ); 38 38 add_action( 'woocommerce_save_product_variation', array($this, 'save_variation_settings_fields'), 10, 2 ); … … 187 187 function woocommerce_product_quick_edit_end() 188 188 { 189 // Something to look at https://www.jclabs.co.uk/adding-woocommerce-products-custom-fields/ 189 190 global $post; 190 191 $shop2api_sync_to_bol = get_post_meta($post->ID, 'shop2api_sync_to_bol', true); … … 225 226 ) 226 227 ); 228 227 229 // Add COMBI EAN Number 228 230 $shop2api_combi_ean_number = get_post_meta( $post->ID, 'shop2api_combi_ean_number', true); -
shop-2-api/trunk/readme.txt
r2900323 r2905836 3 3 Plugin URI: https://wordpress.org/plugins/shop-2-api/ 4 4 Tags: WooCommerce, Bol 5 Stable Tag: 1.0.2 45 Stable Tag: 1.0.25 6 6 Requires at least: 5.0 7 7 Requires PHP: 7.2 … … 14 14 15 15 === Description === 16 Shop2API is a service where you can connect your WooCommerce web-shop to other external web shops. 17 Currently, we offer a WooCommerce to Bol connection where if your data is updated on your WooCommerce shop it will be 18 updated on Bol. When you run a promotion you can add a “Bol Price Metadata” field in Woocommerce which can have a different 19 price than in WooCommerce and will be automatically updated in Bol 16 Shop2API is a service where you can connect your WooCommerce web-shop to Bol.com. 20 17 21 Future connections will include WooCommerce to Amazon, 22 i f you require any connections or suggestion can be sent to support@shop2api.com18 The main purpose of this plugin is to integrate Bol.com into WooCommerce and Bol.com into WooCommerce, it aims to 19 integrate as much as possible services between the platforms. 23 20 24 Bol Koopblok Service: We added a Bol.com koopblok service which is an additional service which will lower the price on boll and 25 check if koopblok is reached. If koopblok reached, your WooCommerce will be updated with that price. 26 You can customize with how much the price will be lowered and when it will stop lowering the price. 21 Current Services: 22 - Sync Offers to Bol.com 23 - Sync Products to Bol.com 24 - Sync Orders from Bol.com to WooCommerce 25 - Sync Stock from WooCommerce to Bol.com 26 - Re-pricer service 27 27 28 28 == Changelog == … … 139 139 1) Fixed a issue on multi-line order stock sync 140 140 141 = 1.0.25 = 142 1) Added Sync stock on the sync order service. 143 2) Removed items from Quick Edit 144 141 145 == Instructions == 142 146 1) After installing Shop2Api, a new menu item will be available in your WordPress installation, you can continue and click on it and enter you token which was mailed to you. -
shop-2-api/trunk/shop-2-api.php
r2900323 r2905836 5 5 Plugin URI: https://wordpress.org/plugins/shop-2-api/ 6 6 Description: The plugin Shop2Api will sync products between e-Commerce platforms. The current supported e-Commerce platforms are WooCommerce to Bol.com, and we are working on Amazon, Shopify and others. We added a koopblok service so that you can check if you lower your price can you get koopblok. 7 Version: 1.0.2 47 Version: 1.0.25 8 8 Requires at least: 5.0 9 9 Requires PHP: 7.2 … … 34 34 define('SHOP2API_PLUGIN_URL', plugin_dir_url( __FILE__ )); 35 35 define('SHOP2API_PLUGIN', plugin_basename( __FILE__ )); 36 define ('VERSION', '1.0.2 4');36 define ('VERSION', '1.0.25'); 37 37 38 38 // Register items in the project. -
shop-2-api/trunk/templates/bol-order-sync.php
r2885872 r2905836 36 36 </td> 37 37 <td><select name="orders-ean-value" id="orders-ean-value"></select></td> 38 </tr> 39 <tr> 40 <td title="Sync Stock to Bol.com, keep your stock in sync with Bol.com" style="padding: 15px 0px 0px 0px;"> 41 <span class="dashicons dashicons-info-outline"></span> 42 </td> 43 <td> 44 <label for="orders-active">Sync Stock to Bol.com</label> 45 </td> 46 <td> 47 <input type="checkbox" name="orders-stock-sync" id="orders-stock-sync"/> 48 <span id="stock-sync" class="error-message"></span> 49 </td> 50 <td></td> 38 51 </tr> 39 52 <tr>
Note: See TracChangeset
for help on using the changeset viewer.