Goal: show the highest variant price on each product card in the collection page (instead of the default minimum).
Key approaches shared:
Simple Liquid output: insert {{ product.price_max | money }} where the product price is rendered in the collection item (usually the product-card/price snippet, not the top-level collection template). GemPages offered this and requested the exact theme/spot to place it for ELLA.
Theme-specific (Refresh): edit price.liquid to use money_price_max when product.price_varies and optionally remove the “From” text via theme content. A Dawn user reported this made the price disappear, indicating theme differences.
Alternative edits: set price to target.price_max and set money_price accordingly in the price snippet. Details vary and must match variables available in the theme.
Range display: compute min and max via product.variants | map: ‘price’ | sort | first/last, and show “min – max” (works broadly and avoids “From”).
Notes:
One suggestion mistakenly averaged prices; ignore it.
Placement is theme-dependent (e.g., product-card-grid or price.liquid). Make changes in a duplicate theme and verify.
Status: no confirmed resolution from OP; guidance and a video link provided; outcome depends on theme implementation.
How can I get it to show the max price (from the variants available in the product) in the collections page?
E.g. if a product page has 2 items, one selling for $10 and another for $20, by default it shows $10 under the product in the collections page, whereas i need it to show $20.
Thank you very much for the info guys, but as i’m not an expert in coding, could you please clarify in which folder exactly i should go and where to place this code? Or what other code to replace? (if such is the case)
Its the ELLA theme from Halo themes, bought it off from Themeforest.
If you go for example in this link below, you can see that the price it displays is 15.90, per product, but if you open the product page the price is either 27.90 of 29.90, and 15.90 is only a complementary product of the one i’m actually selling on the photo.
To show the maximum price of products on a collections page in a Shopify store, you can follow these steps:
In the Shopify admin, go to the “Online Store” section and click on “Themes.”
Find the theme you want to edit and click on the “Actions” dropdown, then select “Edit code.”
In the “Sections” directory, find the “collection-template.liquid” file and click on it to open it for editing.
Find the area of the template where you want to display the maximum price. You can use the for loop that iterates over the collection’s products to find the maximum price:
Thank you very much for the code, but i’m stuck at point 4 you say “Find the area of the template where you want to display the maximum price.”, but i have no idea where to place this. In that page the code is as per below (and then you also say “Use the max_price variable to display the maximum price on the page.”, where do i put that?) :
1- Online Store > Themes > Edit code > search for “price.liquid” you will find this code line in it
if target == product and product.price_varies
assign money_price = 'products.product.price.from_price_html'| t: price: money_price
endif
you can easily change
t: price: money_price
with
t: price: money_price_max
t: means the translation of {{ price }} *
2- Now you will find the price is now for the most expensive variant. but you will notice the price is preceded by the word “From”. To remove this word go to Online Store > Themes > three dots beside Customize > Edit default theme content. Now search for “From {{ price }}” and remove the word “From”.
A few lines above this code
if target == product and product.price_varies assign money_price = ‘products.product.price.from_price_html’| t: price: money_price endif
assign compare_at_price = target.compare_at_price
You need to replace the current variables with this