cancel
Showing results for 
Search instead for 
Did you mean: 

Different Set of Visual Image Switch for each product variation

Different Set of Visual Image Switch for each product variation

Can I set a visual swatches adding different images for each product? For example I have 2 products with different color variation, but I want their variation with different image per color, like in this linkhttps://www.florenceleathermarket.com/stock-1

3 REPLIES 3

Re: Different Set of Visual Image Switch for each product variation

Hi @xiaolin_wu 

 

You mean to say for the same visual swatch but for different product it have different image ? that is what you are trying to achieve !

 

I have seen your link and it seems like you have already done the same and just to add up that yes that is possible you can do the same from the Magento backend - correct me if i understood something different

 

Hope it helps !

if issue solved,Click Kudos & Accept as Solution

Re: Different Set of Visual Image Switch for each product variation

Hi Xiaolin Wu,

How do you hide when you switch between different colors, only one color is displayed.

I use Magento2.4.2. When the product is configurable, the default picture will be displayed repeatedly when switching colors. How to hide duplicate pictures when the product color is switched.

Link  https://pearl.weltpixel.com/v1/leah-yoga-top.html

Screenshot_3.pngScreenshot_1.pngScreenshot_2.png

Re: Different Set of Visual Image Switch for each product variation

I found a solution, modify your magento2.4.2 view.xml
app/design/frontend/yourtheme/yourtheme/etc/view.xml

<vars module="Magento_ConfigurableProduct"> <var name="gallery_switch_strategy">prepend</var> </vars>


change into

<vars module="Magento_ConfigurableProduct"> <var name="gallery_switch_strategy">replace</var> </vars>

It works fine.