Plugin Directory

Changeset 3012560


Ignore:
Timestamp:
12/20/2023 05:51:18 PM (2 years ago)
Author:
ascendedcrow
Message:

Release: 1.0.29.2

Location:
shop-2-api/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • shop-2-api/trunk/assets/bol2api_dashboard.js

    r2983482 r3012560  
    7676        let wc_fields_mapped = false;
    7777        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;
    9480        }
    9581
  • shop-2-api/trunk/assets/bol2api_mapping_scripts.js

    r3007787 r3012560  
    1717        $(document).on('click', '.nav-tab-wrapper a', handle_tab_click);
    1818
    19         get_woocommerce_metadata_option_data();
     19
    2020        get_woocommerce_attribute_option_data();
    21         set_wc_category_field_dropdown()
     21
    2222    });
    2323
     
    3535
    3636    function handle_sec_to_map_change() {
    37         debugger;
    3837        let current_selection = $(this).val();
    3938        // map container before populating new one
     
    101100    }
    102101
    103     // Populate attribute dropwdown
     102    // Populate attribute dropdown
    104103    function set_wc_attribute_field(data) {
    105104        let _select = $('<select />', {
     
    355354   
    356355    function submit_wc_bol_data() {
    357         debugger;
    358356        let converted_data = convert_mapping_to_json();
    359357
     
    458456
    459457        $.post(settings.ajaxurl, data, function(response) {
    460             if (response.success == true) {
     458            if (response.success === true) {
    461459                if (response.data && response.data.response) {
    462460                    if (response.data.response.code === 200) {
    463                         response_data = JSON.parse(response.data.body);
     461                        let response_data = JSON.parse(response.data.body);
    464462                        woocommerce_metadata_option_data = Object.values(response_data.success);
     463                        set_wc_category_field_dropdown()
    465464                    } else {
    466465                        alert("There was an error retrieving the data:" + response);
     
    480479
    481480        $.post(settings.ajaxurl, data, function(response) {
    482             if (response.success == true) {
     481            debugger;
     482            if (response.success === true) {
    483483                if (response.data && response.data.response) {
    484484                    if (response.data.response.code === 200) {
    485                         response_data = JSON.parse(response.data.body);
     485                        let response_data = JSON.parse(response.data.body);
    486486                        woocommerce_attribute_option_data = Object.values(response_data.success);
     487                        get_woocommerce_metadata_option_data();
    487488                    } else {
    488489                        alert("There was an error retrieving the data:" + response);
  • shop-2-api/trunk/includes/Base/Enqueue.php

    r3007787 r3012560  
    216216        $connection_succeeded = $shop_2_api_connection->check_connection();
    217217
    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());
    219219        $bol_information = $this->handle_api_response($shop_2_api_connection->get_bol_connection_info());
    220220        $registration_email = get_option('shop2api_email');
     
    236236    {
    237237        $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());
    239239
    240240        wp_localize_script('bol2api_scripts_common', 'settings', array(
  • shop-2-api/trunk/readme.txt

    r3007787 r3012560  
    33Plugin URI: https://wordpress.org/plugins/shop-2-api/
    44Tags: WooCommerce, Bol
    5 Stable Tag: 1.0.29.0
     5Stable Tag: 1.0.29.2
    66Requires at least: 5.0
    77Requires PHP: 7.2
     
    163163= 1.0.29 =
    1641641) Reworked Bol.com Product and Offer Mapping
     1652) Dropdown Fixes
    165166
    166167
  • shop-2-api/trunk/shop-2-api.php

    r3007906 r3012560  
    55Plugin URI: https://wordpress.org/plugins/shop-2-api/
    66Description: 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.1
     7Version: 1.0.29.2
    88Requires at least: 5.0
    99Requires PHP:      7.2
     
    3434define('SHOP2API_PLUGIN_URL', plugin_dir_url( __FILE__ ));
    3535define('SHOP2API_PLUGIN', plugin_basename( __FILE__ ));
    36 define ('VERSION', '1.0.29.1');
     36define ('VERSION', '1.0.29.2');
    3737
    3838// Register items in the project.
Note: See TracChangeset for help on using the changeset viewer.