Custom fields mapping – ACF gallery and g:additional_image_link
-
Hi,
We save a gallery of images using ACF gallery field for each product. I’d love to get each of these images to appear as a
<g:additional_image_link>
.Firstly, can you explain how the ‘Additional image 1’, ‘Additional image 2’ etc. are generated? Is it just generated from images uploaded to the product?
I thought that perhaps there’d be filters in your codebase that we could use to adapt the attribute value but I can’t see any. This would be really useful.
Imagine if the following filter was available;
// For each attribute $attribute = apply_filters('woo_product_feed_attribute', $attribute, $product, $feed); // or even more specifically $attribute = apply_filters('woo_product_feed_attribute_' . $name, $attribute, $product, $feed);
In our case, we could hook into the additional_image_link attribute and pass the image URLs from the gallery.
- The topic ‘Custom fields mapping – ACF gallery and g:additional_image_link’ is closed to new replies.