When selecting a swatch and adding an item to the bag the master product image is shown in the minibag. We would like the image of the selected swatch to be the thumbnail. Is there a script to do this?

Magento 2.1.11


It's Magento out of box functionality. You can chagen this from below configuration setting from admin panel

Store => Configurations => Sales => Checkout => Shopping cart => Configurable product image

Select: Product Thumbnail Itself

enter image description here

  • 1
    Thanks @Kul That worked perfectly – Dave Lynch May 9 at 8:50
  • Glad to know that @DaveLynch – Kul May 9 at 21:17

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.