How to fix variant pricing issue on product cards?

ISHKAR
Visitor
1 0 0

Hello,

 

I have an issue where the product cards on collection pages are displaying the cheapest variant price rather than the first one. The shopify support team provided the below solution:

 

-------

- "Snippets"

- "Product-price-listing-liquid"

- Replacing " assign price = product.price" with " assign price = variant.price". 

-----

 

This worked at displaying the first variant price rather than the cheapest one, however it created a new issue, where the prices of the product cards on the collection pages all got shifted by one, showing no price for the first card and therefore the wrong prices on all subsequent product cards. (see screenshot below). 

 

Hope you can help? Thank you!

 

Screen Shot 2023-08-10 at 11.31.50.png

 

Replies 0 (0)