Create gallery programmatically
-
How can I generate the same gallery/carousel of product images but with images I want?
Sincerely,
Diogo Rosa
Hello
When you create product gird/carousel, the product featured images would be displayed. In this case, you use Product Grid element http://prntscr.com/jks9ob
If you want special images, which leads to a product, you will need Image gallery http://prntscr.com/jksa9l you will need to add links to the product in the same order as your images are displayed.
In product grid element products are added automatically as per your settings, in the image gallery you add images and links manually.
Best Regards
Maybe I wasn’t specific enough, I want to create these but programmatically, I have implemented a gallery for the variations of a product and I need the same gallery/carousel of the product but for the variations images.
Thank you.
Hi,
Sorry, but we don’t have an instruction for this since it is related to additional customization of our theme. You can check how our products images gallery is developed in the file js/functions.js
. Hope it will be helpful for you.
Kind Regards