Merge pull request #104 from kolyasapphire/master
Фикс на получение аттрибутов товаров в каталоге
This commit is contained in:
commit
52817d9e08
@ -345,7 +345,7 @@ if ( ! class_exists( 'WC_Retailcrm_Icml' ) ) :
|
|||||||
$product_attributes = array();
|
$product_attributes = array();
|
||||||
|
|
||||||
foreach ($attribute_taxonomies as $product_attribute) {
|
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;
|
$product_attributes[$attribute_id] = $product_attribute->attribute_label;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user