1
0
mirror of synced 2025-01-30 23:01:43 +03:00

Merge pull request #104 from kolyasapphire/master

Фикс на получение аттрибутов товаров в каталоге
This commit is contained in:
Alex Lushpai 2019-07-01 11:48:55 +03:00 committed by GitHub
commit 52817d9e08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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