Plugin Directory

Changeset 2979381


Ignore:
Timestamp:
10/16/2023 07:30:23 AM (2 years ago)
Author:
ascendedcrow
Message:

Version = 1.0.27.1 =

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

Legend:

Unmodified
Added
Removed
  • shop-2-api/trunk/includes/Base/Enqueue.php

    r2962006 r2979381  
    2828        add_action('delete_term', array($this, 'fire_update_events'), 10, 3);
    2929        // Add events for Attributes
    30         add_action('woocommerce_attribute_added', array($this, 'fire_update_events_attr'), 10, 1);
    31         add_action('woocommerce_attribute_updated', array($this, 'fire_update_events_attr'), 10, 1);
    32         add_action('woocommerce_attribute_deleted', array($this, 'fire_update_events_attr'), 10, 1);
     30        add_action('woocommerce_attribute_added', array($this, 'fire_update_events_attr_added'), 10, 2);
     31        add_action('woocommerce_attribute_updated', array($this, 'fire_update_events_attr'), 10, 3);
     32        add_action('woocommerce_attribute_deleted', array($this, 'fire_update_events'), 10, 3);
    3333        // Add events for product update
    34         add_action('woocommerce_update_product', array($this, 'fire_sync_event'), 10, 1);
     34        add_action('woocommerce_update_product', array($this, 'fire_sync_event'), 10, 2);
     35        add_action('woocommerce_update_product_variation', array($this, 'fire_sync_event'), 10, 2);
    3536        // Order Status Completed.
    3637        add_action( 'woocommerce_order_status_completed',  array($this, 'action_woocommerce_order_status_completed'), 10, 1 );
     
    8081    }
    8182
    82     public function fire_update_events_attr($id): void
     83    public function fire_update_events_attr($id, $data, $old_slug): void
     84    {
     85        require_once SHOP2API_PLUGIN_PATH . '/includes/Api/Shop2ApiConnect.php';
     86        $shop_2_api_connection = new Shop2ApiConnect();
     87        $shop_2_api_connection->update_attr_cache();
     88    }
     89
     90    public function fire_update_events_attr_added($id, $data): void
    8391    {
    8492        require_once SHOP2API_PLUGIN_PATH . '/includes/Api/Shop2ApiConnect.php';
     
    95103    }
    96104
    97     public function fire_sync_event($product_id): void
     105    public function fire_sync_event($product_id, $product): void
    98106    {
    99107        if (isset($_POST['shop2api_sync_called'])) {
     
    107115        $shop_2_api_connection->sync_woocommerce_to_bol_with_id($product_id);
    108116        $shop_2_api_connection->update_metadata_cache();
    109 
    110117    }
    111118
  • shop-2-api/trunk/readme.txt

    r2975851 r2979381  
    33Plugin URI: https://wordpress.org/plugins/shop-2-api/
    44Tags: WooCommerce, Bol
    5 Stable Tag: 1.0.27
     5Stable Tag: 1.0.27.1
    66Requires at least: 5.0
    77Requires PHP: 7.2
     
    1511512) Fixed bug with the custom WooCommerce Updates.
    1521523) Updated dashboard.
     1534) Added hook for update product variations.
    153154
    154155== Instructions ==
  • shop-2-api/trunk/shop-2-api.php

    r2975851 r2979381  
    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.27
     7Version: 1.0.27.1
    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.27');
     36define ('VERSION', '1.0.27.1');
    3737
    3838// Register items in the project.
Note: See TracChangeset for help on using the changeset viewer.