3

I have a problem regarding the productimages/image gallery in a product that is configurable.

Question

Is there a way to get a ID of the Simple Products Image and link it to open the right image in the gallery?

User case

When one click a certain color variation the respective simple product image is shown, eg. from orange to purple.

If one then click/trigger the gallery by pressing the "purple" product image, the gallery list - .more-views - does not show the purple, but the original "first image orange" in the gallery.

Data dumping

I have logged the $_product->getData() to see if there is any way to dig out a "Image ID" of the associated product without any luck.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.