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
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 !
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.
I found a solution, modify your magento2.4.2 view.xml
<vars module="Magento_ConfigurableProduct"> <var name="gallery_switch_strategy">prepend</var> </vars>
<vars module="Magento_ConfigurableProduct"> <var name="gallery_switch_strategy">replace</var> </vars>
It works fine.