Plugin Directory

Changeset 2905836


Ignore:
Timestamp:
04/28/2023 06:36:15 PM (3 years ago)
Author:
ascendedcrow
Message:

Version = 1.0.25 =

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

Legend:

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

    r2885872 r2905836  
    103103    function retrieve_from_shop2api() {
    104104        let json_data = settings.orders_data;
    105         debugger;
    106105        if (json_data.length !== 0) {
    107106            let order_data = json_data[0];
     
    112111            $('#orders-paid').prop('checked', order_data.paid);
    113112            $('#orders-use-bol-price').prop('checked', order_data.use_bol_price);
     113            $('#orders-stock-sync').prop('checked', order_data.sync_stock);
    114114            $('#orders-email').val(order_data.order_email);
    115115
  • shop-2-api/trunk/includes/Api/Shop2ApiConnect.php

    r2900323 r2905836  
    458458    public function set_order_data(
    459459        $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
    461461    )
    462462    {
     
    485485            "order_email" => $order_email,
    486486            "use_bol_price" => ($use_bol_price != ''),
     487            "sync_stock" => ($stock_sync != ''),
    487488        ];
    488489
  • shop-2-api/trunk/includes/Base/AjaxButtonActions.php

    r2885872 r2905836  
    312312            $_POST['orders-active'], $_POST['orders-status'], $_POST['orders-paid'], $_POST['orders-ean-value'],
    313313            $_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']
    315316        );
    316317
  • shop-2-api/trunk/includes/Base/EnqueueWC.php

    r2900323 r2905836  
    3333        add_action('pre_get_posts', array($this, 'event_column_orderby'));
    3434        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 );
    3737        add_action( 'woocommerce_product_after_variable_attributes', array($this, 'variation_settings_fields'), 10, 3 );
    3838        add_action( 'woocommerce_save_product_variation', array($this, 'save_variation_settings_fields'), 10, 2 );
     
    187187    function woocommerce_product_quick_edit_end()
    188188    {
     189        // Something to look at https://www.jclabs.co.uk/adding-woocommerce-products-custom-fields/
    189190        global $post;
    190191        $shop2api_sync_to_bol = get_post_meta($post->ID, 'shop2api_sync_to_bol', true);
     
    225226            )
    226227        );
     228
    227229        // Add COMBI EAN Number
    228230        $shop2api_combi_ean_number = get_post_meta( $post->ID, 'shop2api_combi_ean_number', true);
  • shop-2-api/trunk/readme.txt

    r2900323 r2905836  
    33Plugin URI: https://wordpress.org/plugins/shop-2-api/
    44Tags: WooCommerce, Bol
    5 Stable Tag: 1.0.24
     5Stable Tag: 1.0.25
    66Requires at least: 5.0
    77Requires PHP: 7.2
     
    1414
    1515=== 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
     16Shop2API is a service where you can connect your WooCommerce web-shop to Bol.com.
    2017
    21 Future connections will include WooCommerce to Amazon,
    22 if you require any connections or suggestion can be sent to support@shop2api.com
     18The main purpose of this plugin is to integrate Bol.com into WooCommerce and Bol.com into WooCommerce, it aims to
     19integrate as much as possible services between the platforms.
    2320
    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.
     21Current 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
    2727
    2828== Changelog ==
     
    1391391) Fixed a issue on multi-line order stock sync
    140140
     141= 1.0.25 =
     1421) Added Sync stock on the sync order service.
     1432) Removed items from Quick Edit
     144
    141145== Instructions ==
    1421461) 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  
    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.24
     7Version: 1.0.25
    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.24');
     36define ('VERSION', '1.0.25');
    3737
    3838// Register items in the project.
  • shop-2-api/trunk/templates/bol-order-sync.php

    r2885872 r2905836  
    3636                </td>
    3737                <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>
    3851            </tr>
    3952            <tr>
Note: See TracChangeset for help on using the changeset viewer.