1
0
mirror of synced 2025-01-30 06:41:41 +03:00

ref #90237 fix code

update version
This commit is contained in:
Ivan Chaplygin 2023-05-29 19:22:02 +03:00
parent 5c70a32d36
commit d284c25e62
6 changed files with 10 additions and 6 deletions

View File

@ -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

View File

@ -1 +1 @@
4.6.3
4.6.4

View File

@ -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();

View File

@ -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 =

View File

@ -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

View File

@ -16,7 +16,7 @@
*
* @link https://wordpress.org/plugins/woo-retailcrm/
*
* @version 4.6.3
* @version 4.6.4
*
* @package RetailCRM
*/