fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

Show specific gallery picture based on selected variation

Hi there,

your plugin does a great job with regards to showing variation images as swatches.

But we do have several products that have the same large set of variation pictures.
Therefore it’s much more efficient to define a global attribute which a lot of values that all have images. And that global attribute is used for multiple products.

The problem is that, when looking at the single product page, the enlarge image does not change to the image matching the selected variation.
It just doesn’t change while selecting different attribute values.
Example: https://shop.daunenspiel.at/p/sorema-graccioza-frottierprogramm/

This is different for products where we define a product specific attribute and set images for each variation. Then the enlarged image changes to the variation image.
Example: https://shop.daunenspiel.at/p/decoflux-morgenmantel-orion/

Can you think of any way to change the enlarged picture to the selected attribute picture, even if no variation image is defined?

Due to the fact that the image used in the product gallery and the image defined for the global attribute value are the same.
Same filename, same item from the media library.
So there should be a way to do something like this:

  • when selected variation changes
  • if the selected variation does not have an image
  • check if the selected global attribute values have an image defined
  • if the product gallery contains that same image, enlarge it.

Any way how to approach this?

I provide you with access to a copy of the site in question. The sample URLs mentioned above are from the production site, but are present on the test site, too.

Thanks a lot,

Christian Toller

Hakik Zaman

Hi Christian,

Unfortunately, the feature is not currently available.

Please send the feature request here: https://storepress.fider.io/

and ask your other to upvote it.

Cheers!

Hi Hakik,

I will certainly post that feature request, thanks.

But I was not necessarily asking for a readily available solution, but more for a hint where to start some development work on my own to achieve that.
So e.g. I would assume that there’s a Javascript event handler that’s called when a variant is selected. Where would I find that code?

If this is a totally out of scope question, please let me know.

Regards,

Christian

Hakik Zaman

Hi Christian,

I am sorry. Unfortunately, it is beyond our support scope. Please check our support policy.

Thank You