Magento 2.4.2 How to hide duplicate pictures when the product color is switched

Comments

1 comment

  • Avatar
    Angelo

    Hi everyboby,
    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.

    0
    Comment actions Permalink

Please sign in to leave a comment.