Custom_label_0 problem
-
Hello Antonino,
First of all thanks for the great plugin. I am using the following code to define the “Store Code” attribute in the product feed.add_filter('aepc_feed_item', function($fields, \PixelCaffeine\ProductCatalog\FeedMapper $item) { if ($product = wc_get_product($item->get_item()->get_id())) { if(!empty($product->get_attribute('storecode'))) { $fields['g:custom_label_0'] = $product->get_attribute('storecode'); } } return $fields; }, 10, 2);I can get the value of that attribute in my product feed which is “1” as following :
<g:google_product_category>Clothing & Accessories</g:google_product_category> <g:custom_label_0>1</g:custom_label_0>But How do I change
<g:custom_label_0>1</g:custom_label_0>to
<g:Store code>1</g:Store code>Thank you in advance.
The topic ‘Custom_label_0 problem’ is closed to new replies.