Custom Label 0 problem
-
Hello, thank you for your great plugin.
I have an issue
I use this code: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('pa_seasons'))) { $fields['g:custom_label_0'] = $product->get_attribute('pa_seasons'); } } return $fields; }, 10, 2);
in order to include on my catalogue a field that is called Season.
in xml the result is:
</g:google_product_category>
<g:custom_label_0/>
</entry>
<entry>Is something wrong?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Custom Label 0 problem’ is closed to new replies.