Plugin Directory

Changeset 2983482


Ignore:
Timestamp:
10/25/2023 07:03:34 AM (2 years ago)
Author:
ascendedcrow
Message:

Version = 1.0.28.3 =

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

Legend:

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

    r2962006 r2983482  
    4444        })
    4545
     46        // Order Checks
     47        populate_api_information_orders()
    4648    })
    4749
     
    5052        // If the connection is good, it will do Nothing else show connect popup.
    5153        if (!settings.connected) {
    52             debugger;
    5354            $('#register-free-account-modal').modal({
    5455                escapeClose: false,
     
    5960            add_connection_error();
    6061        }
    61 
    6262        // IF WC Connected and Boll connected then show STEP DATA.
    6363        if (!settings.wc_connected || !settings.bol_connected) {
     
    155155    }
    156156
     157    // This will check/uncheck order boxes
     158    function populate_api_information_orders() {
     159        if (settings.bol_info && settings.bol_info.length > 0) {
     160            if (settings.bol_info[0].order_active === "False") {
     161                let $item = $('#shop2api-map-order-sync h3 span').first().removeClass('dashicons-yes-alt').removeClass('item-completed');
     162                $item.addClass('dashicons-dismiss').addClass('item-not-completed');
     163            }
     164            if (settings.bol_info[0].sync_stock_active === "False") {
     165                let $item = $('#shop2api-map-order-sync-stock h3 span').first().removeClass('dashicons-yes-alt').removeClass('item-completed');
     166                $item.addClass('dashicons-dismiss').addClass('item-not-completed');
     167            }
     168            if (settings.bol_info[0].combi_deal_active === "False") {
     169                let $item = $('#shop2api-map-order-sync-combi-deal h3 span').first().removeClass('dashicons-yes-alt').removeClass('item-completed');
     170                $item.addClass('dashicons-dismiss').addClass('item-not-completed');
     171            }
     172        }
     173    }
     174
    157175    // This will save the bol data and trigger the save of WC data.
    158176    function save_bol_data() {
  • shop-2-api/trunk/readme.txt

    r2982472 r2983482  
    33Plugin URI: https://wordpress.org/plugins/shop-2-api/
    44Tags: WooCommerce, Bol
    5 Stable Tag: 1.0.28.2
     5Stable Tag: 1.0.28.3
    66Requires at least: 5.0
    77Requires PHP: 7.2
  • shop-2-api/trunk/shop-2-api.php

    r2982472 r2983482  
    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.28.2
     7Version: 1.0.28.3
    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.28.2');
     36define ('VERSION', '1.0.28.3');
    3737
    3838// Register items in the project.
  • shop-2-api/trunk/templates/dashboard.php

    r2982442 r2983482  
    143143            <div class="card inline" id='order-card'>
    144144                <h1 style="font-weight: bold;"><?php echo $order_card_heading ; ?></h1>
    145                 <div id="map-wc-fields-to-bol" class="tooltip">
     145                <div id="shop2api-map-order-sync" class="tooltip">
    146146                    <span class="tooltiptext tooltip-right">
    147147                        <?php echo $order_card_enabled_tooltip; ?>
     
    152152                            <?php echo $order_card_active ?> <span
    153153                                    style="color: #008CBA"><?php echo $click_here; ?></span>
     154                        </h3>
     155                    </a>
     156                </div>
     157                <div id="shop2api-map-order-sync-stock" class="tooltip">
     158                    <span class="tooltiptext tooltip-right">
     159                        <?php echo $order_card_stock_sync_tooltip; ?>
     160                    </span>
     161                    <a href='<?php echo admin_url('admin'); ?>.php?page=shop2api_bol_order_service'>
     162                        <h3>
     163                            <span class="dashicons dashicons-yes-alt item-completed list-icons"></span>
     164                            <?php echo $order_card_stock_sync_active ?> <span
     165                                    style="color: #008CBA"><?php echo $click_here; ?></span>
     166                        </h3>
     167                    </a>
     168                </div>
     169                <div id="shop2api-map-order-sync-combi-deal" class="tooltip">
     170                    <span class="tooltiptext tooltip-right">
     171                        <?php echo $order_card_combi_deal_tooltip; ?>
     172                    </span>
     173                    <a href='<?php echo admin_url('admin'); ?>.php?page=shop2api_bol_order_service'>
     174                        <h3>
     175                            <span class="dashicons dashicons-yes-alt item-completed list-icons"></span>
     176                            <?php echo $order_card_combi_deal_active ?>
     177                            <span style="color: #008CBA"><?php echo $click_here; ?></span>
    154178                        </h3>
    155179                    </a>
  • shop-2-api/trunk/translation/shop2api_dashboard.php

    r2982442 r2983482  
    3434$offer_product_heading = wp_kses(__("Sync Products/Offers"), $allowed_html);
    3535$order_card_heading = wp_kses(__("Sync Orders/Stock"), $allowed_html);
    36 $order_card_enabled_tooltip = wp_kses(__("Enable this to sync orders or stock"), $allowed_html);
    37 $order_card_active = wp_kses(__("Enable Order Sync"), $allowed_html);
     36
     37$order_card_enabled_tooltip = wp_kses(__("Link to the page to enable orders or stock"), $allowed_html);
     38$order_card_active = wp_kses(__("Sync Orders to Bol.com"), $allowed_html);
     39
     40$order_card_combi_deal_tooltip = wp_kses(__("Combi Deals checked on stock update."), $allowed_html);
     41$order_card_combi_deal_active = wp_kses(__("Combi Deals Syncing Active"), $allowed_html);
     42
     43$order_card_stock_sync_tooltip = wp_kses(__("Sync stock after order was synced,"), $allowed_html);
     44$order_card_stock_sync_active = wp_kses(__("Sync Stock After Order Synced"), $allowed_html);
Note: See TracChangeset for help on using the changeset viewer.