From f8d1febe47a4ee33c14fb60233aced2cf34ac185 Mon Sep 17 00:00:00 2001 From: kolyasapphire Date: Thu, 6 Jun 2019 18:33:18 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=BD=D0=B0=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=BB=D1=83=D1=87=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B0?= =?UTF-8?q?=D1=82=D1=82=D1=80=D0=B8=D0=B1=D1=83=D1=82=D0=BE=D0=B2=20=D1=82?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D1=80=D0=BE=D0=B2=20=D0=B2=20=D0=BA=D0=B0?= =?UTF-8?q?=D1=82=D0=B0=D0=BB=D0=BE=D0=B3=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit wc_attribute_taxonomy_name_by_id принимает int, необходим intval. --- src/include/class-wc-retailcrm-icml.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/class-wc-retailcrm-icml.php b/src/include/class-wc-retailcrm-icml.php index f06e6b0..5ef9357 100644 --- a/src/include/class-wc-retailcrm-icml.php +++ b/src/include/class-wc-retailcrm-icml.php @@ -345,7 +345,7 @@ if ( ! class_exists( 'WC_Retailcrm_Icml' ) ) : $product_attributes = array(); foreach ($attribute_taxonomies as $product_attribute) { - $attribute_id = wc_attribute_taxonomy_name_by_id($product_attribute->attribute_id); + $attribute_id = wc_attribute_taxonomy_name_by_id(intval($product_attribute->attribute_id)); $product_attributes[$attribute_id] = $product_attribute->attribute_label; }