Magento Expert Forum - Improve your Magento experience

Results 1 to 2 of 2

How to set Base Image Instead of Thumbnail Image in Minicart of Magento 2

  1. #1
    Junior Member
    Join Date
    Jun 2016
    Location
    Bhavnagar, Gujarat, India
    Posts
    1,125
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Post How to set Base Image Instead of Thumbnail Image in Minicart of Magento 2

    Most of the Ecommerce customers make a buying decision by viewing the product image, and that’s how image plays a vital role in boosting store sales. Because they can’t have hands-on experience until they received their order delivery. That’s why the store owners add multiple product images and videos from different perspectives so the customer can make a more precise decision and reduce product returns. In default Magento 2, there are several image type options using which you can set base Image, small Image, thumb, and open graph/twitter card images for the product.

    Name:  How-to-Showcase-Base-Image-Instead-of-Thumbnail-Image-in-Minicart-of-Magento-2.png
Views: 57
Size:  58.1 KB

    But things are quite easy when you have a single product image, but when there are multiple images, you have to select image options each time you upload product image and also have to remember their sequence and everything. To make it easy, you can use your base image as product thumb, so you can save your time by using the same image everywhere in Magento 2. By using the base image as a thumb, the same image will be displayed in a mini cart every time your customer adds a product to the shopping cart. Here is code to do the same.
    To do the same first, we need to add a small piece of code in frontend “view.xml” file inside your theme folder. But first of all search for the below code in the file.
    app\design\frontend\Themes\Yourtheme\etc\view.xml

    for more information visit this: https://magecomp.com/blog/set-base-i...-of-magento-2/

    View more threads in the same category:


  2. #2
    Junior Member kajal's Avatar
    Join Date
    Sep 2014
    Location
    Bangalore
    Posts
    1,446
    Thanks
    0
    Thanked 20 Times in 20 Posts

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •