Magento 2 Change Minicart Product Image from thumbnail to regular image

We can edit view.xml in the below path

app/design/{Package}/{Theme-name}/etc/view.xml

add the below code in it

<image id="mini_cart_product_image" type="image">
            <width>100</width>
            <height>100</height>
</image>

you can change the image type and width/height as per your need

type – It means what type of image should display in the respective places in the frontend.

Explanation:

  1. image – corresponds to the Base Image role
  2. small_image – corresponds to the Small Image role
  3. swatch_image – corresponds to the Swatch Image role
  4. swatch_thumb – corresponds to the Swatch Image role
  5. thumbnail – corresponds to the Thumbnail Image role

Leave a comment

Your email address will not be published. Required fields are marked *