Skip to content
Advertisement

WooCommerce: add extra images to product gallery

I want to add some extra images to the product gallery. Based on a meta field from a different post. The images should only add to the gallery in the frontend. Not to the image gallery of the product itself.

EDIT: @mujuonly was right. I could use woocommerce_product_thumbnails and so I tried the following code and everything works fine:

JavaScript

With 100 in the action the images are shown at the end of the gallery:

JavaScript

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement