Changeset 3012560
- Timestamp:
- 12/20/2023 05:51:18 PM (2 years ago)
- Location:
- shop-2-api/trunk
- Files:
-
- 5 edited
-
assets/bol2api_dashboard.js (modified) (1 diff)
-
assets/bol2api_mapping_scripts.js (modified) (6 diffs)
-
includes/Base/Enqueue.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
shop-2-api.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shop-2-api/trunk/assets/bol2api_dashboard.js
r2983482 r3012560 76 76 let wc_fields_mapped = false; 77 77 if (settings.mapped_rows.length > 0) { 78 if (settings.mapped_rows[0].map_data) { 79 for (const item in settings.mapped_rows[0].map_data) { 80 mappings = settings.mapped_rows[0].map_data[item] 81 for (mapping in mappings) { 82 if (mapping === "wc_field_values" && mappings[mapping].length > 0) { 83 wc_categories_mapped = true; 84 } 85 if (mapping === "mapping") { 86 for (mapped_items in mappings[mapping]) { 87 wc_fields_mapped = true; 88 break; 89 } 90 } 91 } 92 } 93 } 78 wc_categories_mapped = true; 79 wc_fields_mapped = true; 94 80 } 95 81 -
shop-2-api/trunk/assets/bol2api_mapping_scripts.js
r3007787 r3012560 17 17 $(document).on('click', '.nav-tab-wrapper a', handle_tab_click); 18 18 19 get_woocommerce_metadata_option_data(); 19 20 20 get_woocommerce_attribute_option_data(); 21 set_wc_category_field_dropdown() 21 22 22 }); 23 23 … … 35 35 36 36 function handle_sec_to_map_change() { 37 debugger;38 37 let current_selection = $(this).val(); 39 38 // map container before populating new one … … 101 100 } 102 101 103 // Populate attribute drop wdown102 // Populate attribute dropdown 104 103 function set_wc_attribute_field(data) { 105 104 let _select = $('<select />', { … … 355 354 356 355 function submit_wc_bol_data() { 357 debugger;358 356 let converted_data = convert_mapping_to_json(); 359 357 … … 458 456 459 457 $.post(settings.ajaxurl, data, function(response) { 460 if (response.success == true) {458 if (response.success === true) { 461 459 if (response.data && response.data.response) { 462 460 if (response.data.response.code === 200) { 463 response_data = JSON.parse(response.data.body);461 let response_data = JSON.parse(response.data.body); 464 462 woocommerce_metadata_option_data = Object.values(response_data.success); 463 set_wc_category_field_dropdown() 465 464 } else { 466 465 alert("There was an error retrieving the data:" + response); … … 480 479 481 480 $.post(settings.ajaxurl, data, function(response) { 482 if (response.success == true) { 481 debugger; 482 if (response.success === true) { 483 483 if (response.data && response.data.response) { 484 484 if (response.data.response.code === 200) { 485 response_data = JSON.parse(response.data.body);485 let response_data = JSON.parse(response.data.body); 486 486 woocommerce_attribute_option_data = Object.values(response_data.success); 487 get_woocommerce_metadata_option_data(); 487 488 } else { 488 489 alert("There was an error retrieving the data:" + response); -
shop-2-api/trunk/includes/Base/Enqueue.php
r3007787 r3012560 216 216 $connection_succeeded = $shop_2_api_connection->check_connection(); 217 217 218 $map_data = $this->handle_api_response($shop_2_api_connection->get_bol_wc_mapping_ info());218 $map_data = $this->handle_api_response($shop_2_api_connection->get_bol_wc_mapping_detail_info()); 219 219 $bol_information = $this->handle_api_response($shop_2_api_connection->get_bol_connection_info()); 220 220 $registration_email = get_option('shop2api_email'); … … 236 236 { 237 237 $shop_2_api_connection = new Shop2ApiConnect(); 238 $map_data = $this->handle_api_response($shop_2_api_connection->get_bol_wc_mapping_ info());238 $map_data = $this->handle_api_response($shop_2_api_connection->get_bol_wc_mapping_detail_info()); 239 239 240 240 wp_localize_script('bol2api_scripts_common', 'settings', array( -
shop-2-api/trunk/readme.txt
r3007787 r3012560 3 3 Plugin URI: https://wordpress.org/plugins/shop-2-api/ 4 4 Tags: WooCommerce, Bol 5 Stable Tag: 1.0.29. 05 Stable Tag: 1.0.29.2 6 6 Requires at least: 5.0 7 7 Requires PHP: 7.2 … … 163 163 = 1.0.29 = 164 164 1) Reworked Bol.com Product and Offer Mapping 165 2) Dropdown Fixes 165 166 166 167 -
shop-2-api/trunk/shop-2-api.php
r3007906 r3012560 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.29. 17 Version: 1.0.29.2 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.29. 1');36 define ('VERSION', '1.0.29.2'); 37 37 38 38 // Register items in the project.
Note: See TracChangeset
for help on using the changeset viewer.