From d284c25e62144515800aea9368f84507108ad5f5 Mon Sep 17 00:00:00 2001 From: Ivan Chaplygin Date: Mon, 29 May 2023 19:22:02 +0300 Subject: [PATCH] ref #90237 fix code update version --- CHANGELOG.md | 2 +- VERSION | 2 +- src/include/class-wc-retailcrm-inventories.php | 6 +++++- src/readme.txt | 2 +- src/retailcrm.php | 2 +- src/uninstall.php | 2 +- 6 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d46a54d..6f2673d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 2022-05-26 4.6.3 +## 2022-05-26 4.6.4 * Optimizing unloading of stock ## 2022-05-29 4.6.3 diff --git a/VERSION b/VERSION index 7962f0f..101d404 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.6.3 \ No newline at end of file +4.6.4 \ No newline at end of file diff --git a/src/include/class-wc-retailcrm-inventories.php b/src/include/class-wc-retailcrm-inventories.php index 200ddd9..5d0fa77 100644 --- a/src/include/class-wc-retailcrm-inventories.php +++ b/src/include/class-wc-retailcrm-inventories.php @@ -70,7 +70,11 @@ if (!class_exists('WC_Retailcrm_Inventories')) : if (isset($offer[$this->bind_field])) { $product = retailcrm_get_wc_product($offer[$this->bind_field], $this->retailcrm_settings); - if ($product instanceof WC_Product && $product->get_type() != 'external') { + if ($product instanceof WC_Product) { + if ($product->get_type() == 'external') { + continue; + } + if ($product->get_type() == 'variation' || $product->get_type() == 'variable') { $parentId = $product->get_parent_id(); diff --git a/src/readme.txt b/src/readme.txt index 604d7d3..822ac84 100644 --- a/src/readme.txt +++ b/src/readme.txt @@ -82,7 +82,7 @@ Asegúrate de tener una clave API específica para cada tienda. Las siguientes i == Changelog == -= 4.6.3 = += 4.6.4 = * Optimizing unloading of stock = 4.6.3 = diff --git a/src/retailcrm.php b/src/retailcrm.php index 2ca8f23..e586d95 100644 --- a/src/retailcrm.php +++ b/src/retailcrm.php @@ -5,7 +5,7 @@ * Description: Integration plugin for WooCommerce & Simla.com * Author: RetailDriver LLC * Author URI: http://retailcrm.pro/ - * Version: 4.6.3 + * Version: 4.6.4 * Tested up to: 6.0 * WC requires at least: 5.4 * WC tested up to: 6.9 diff --git a/src/uninstall.php b/src/uninstall.php index 30aae38..5c601aa 100644 --- a/src/uninstall.php +++ b/src/uninstall.php @@ -16,7 +16,7 @@ * * @link https://wordpress.org/plugins/woo-retailcrm/ * - * @version 4.6.3 + * @version 4.6.4 * * @package RetailCRM */