Show Discounted Prices on Collection page
By default, Shopify only shows the standard product prices on collection pages and search result pages. If you’re using Price List v2, you may want your customers to see the final discounted prices directly on these pages — not just on the product page.
This guide walks you through setting it up step by step.
Step 1: Locate the render 'price'
in Your Theme
render 'price'
in Your ThemeOpen your Shopify theme code editor.
Search for
render 'price'
or something similar that renders the price on collection pagesYou should find it inside a file such as
price.liquid
or similar, depending on your theme.
⚠️ Each theme is slightly different. In most cases, collection pages are rendered directly by Liquid, so unlike product pages, you can’t simply add an app block here.
Step 2: Create a New Snippet
In the Snippets folder of your theme, create a new file called:
dollarlabs-script.liquid
Copy and paste the snippet code provided here
Go to your store's
theme.liquid
file and paste the below line anywhere before</head>
{% include 'dollarlabs-script' %}
Create a new file under snippets and name it
dollarlabs-collection-price.liquid
Paste the following code inside this file and save it.
Create another file under the assets section and name it
dollarlabs-pricing.js
Copy and paste the following code inside this file and save it
Go to your store's
theme.liquid
file and paste the below line anywhere before</head>
<!-- Publish Shopify money format to JS --> <script>window.DollarlabsCurrencyFormat = {{ shop.money_format | json }};</script> <!-- Load the global pricing runner --> <script src="{{ 'dollarlabs-pricing.js' | asset_url }}" defer></script>
No further changes are required.
Step 3: Update price.liquid
price.liquid
Go back to the file where you found
render 'price'
(usuallyprice.liquid
).Comment out or remove the existing
render 'price'
block.Replace it with the following snippet call
{% render 'dollarlabs-collection-price', product: product_resource %}
✅ Important: Make sure you pass the correct product variable - in my case
product_resource
instead of justproduct
.
Step 4: Save and Verify
Save your changes.
Go to your storefront and check a collection page or search results page.
You should now see the correct discounted prices for each product.
To double-check:
Add a product to cart and confirm the cart price matches the discounted price displayed on the collection page.
Common Issues
All products showing the same price: This usually happens if
product
is passed instead ofproduct_resource
. Update it to the right variable used in your form, in my case it isproduct_resource
.Theme variations: Some themes may name or structure files differently. Look for similar naming like
price
,card-price
, orproduct-price
.
Need Help?
If you run into issues while editing your theme, reach out to our support team. We’ll be happy to implement this for you.
Last updated