Shopify themes, liquid, logos, and UX
Hi, I am wondering if someone can please help. I have 2 variant options on my products page and once you select an option, it shows that particular image but that image is also shown in the cart and on screen. Is there any way to show the main product image in the cart instead?
this is what I would like it to show (have used arrows - currently it shows the back of the hoop as that is what the two variants are - is there a way of having it show the main product image in the cart for this size and the larger one.
Thank you in advance! 🙂
- About to show main product image instead of variant image, you should be change variant image to same feature image (main product image), additionally if you want to show variant image when user choose options but on cart page you want to show main image product instead so you need customize it with code. So if you not familiar with code, you can ask help from Shopify expert,
Let me know if you have further question.
@BSSCommerce-B2B Are you able to help with this please? Thanks so so much for all of your other help. Super kind of you! 🙂
Step 1. Go to Admin -> Online store -> Theme > Edit code
Step 2. Find the file "cart-notification-product.liquid"
Step 3. Change the code i've marked here
to
This is the code, you can copy it:
src="{{ item.product.featured_image | image_url: width: 140 }}"
alt="{{ item.product.featured_image.alt | escape }}"
Result in my site: I selected the black variant, but the main product image is displayed instead
Hope it helps 🙂
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now I Donate Us Here!
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024