Display discount on product page without compare at price on Dawn Theme

Hi,

I have an automatic discount of 10% setup - I already have the liquid code for the discounted price to display on the collection and home pages, however, I need a code for the discounted price to display on the actual product pages. I do NOT have compare at price setup. I am using Dawn theme. Can anyone assist? Thanks so much in advance!

1 Like

Hi @bougli

This is Richard from PageFly - Shopify Page Builder App, I’d like to suggest this idea:
In this case you must add compare at price to your product so it can be displayed

Hope you find my answer helpful!
Best regards,
Richard | PageFly

It doesn’t make sense to set up the compare at when you have thousands of items and run different sales often. I’m crushed that Shopify is lacking the world’s most basic feature.

5 Likes

I’m crushed that there is no easy solution for us that have thousands of listings and may have multiple sales percentages offered at different times throughout the year. It would take me days to edit every variant in every listing every time I run a sale. THIS MAKES NO SENSE! Please, someone fix this.

7 Likes

This is absolut non-sense and i am disgusted at Shopify for not fixing this issue after so long people complaining about this..

It is fr**king simple. Automatic disocunt is applied to an selling price. This automatic dscount is using the Shopify built in discount section.

The original price and selling price shows up in the cart, but why the hell doesn;t is show on the Home Page, Collections Page and Product Page.

What is the fix here. I am using the Sense theme. This is complete non-sense,

to the Shopify Partners and Shopify staff itself. STOP ASKING STUPID QUESTON AND FIX THE ISSUE.

6 Likes

I apologise for my language in my above post, but this issue is just gone beyond the joke with Shopify.

When you apply a discount you expect it to be seen throughout your store and not just the cart. it’s as simple as that

5 Likes

Why would you suggest that when the person is specifically saying no compare at price? awful answer

Here’s a solution for you guys:
I made a walkthrough video and provided the liquid templates for Dawn theme and Impulse theme, displaying store-wide pricing for a flat discount for all products/variants.
https://www.youtube.com/watch?v=is0KxqXUYns

3 Likes

@CluckinAwesome This was EXACTLY what I needed! down to the percent off LOL. Absolutely brilliant. Everywhere else kept saying compare at price is needed or to go to card section on the Dawn theme but it’s actually snippets. Also no one has updated that the discounts object has been deprecated. Thank you sooo much!!

Amazing! Thank you so much!

Hey what if I want to apply the discount to spcific products and not all the products across my store?

Hey what if I want to apply the discount to spcific products and not all the products across my store?

In this case you can utilize tag, and only apply the discount calculation if the product contain certain tag. You can also set the automatic discount to apply on autmated collection, and the automated collection condition is product containing that tag.

something like

{% assign discount_sale = 0.15 %}
{% assign original_price = current_variant.price %}
{% if product.tags contains “15off” %}

{% assign discount_price = original_price | times: discount_sale %}

{% else %}

{% assign discount_price = original_price %}
{% endif %}

Hi Bougli and other merchants,

For automatic discount to be visible on product page, you will need to custom code, and also calculate and store the discounted price for each eligible product (as the automatic discount information is not available on the product page via the theme code, an unfortunate technical limitation by Shopify), which can be complex. The youtube video shared earlier used fixed discount percentage in the code that applies to all product, which work only if the automatic discount is applied to all products in the store.

I have just made an app specifically to solve this issue , the app utilizes metafields and can display discounted price (from the automatic discount) on the product page / collection / search result.

On product page, you can use the app block to display the discounted price (you can drag and drop it in the theme editor), which does not impact the store speed, as it uses Liquid to output the discounted price. (There’s also instruction in the app for showing discounted price in collection / home page, I would be happy to assist on the setup)

The app name is Yagi Automatic Discount Helper (https://apps.shopify.com/yagi-automatic-discount-helper ), you can view the demo store in the app listing page to see how it works.

soulchild37_0-1742289244407.png

Hope this can help!

Regards,

Axel Kee (developer of the Yagi Automatic Discount Helper app)

Appreciate you sharing the walkthrough — super helpful for folks comfortable editing Liquid.

Just adding an alternative for those who want to skip the code-heavy route:

If you’re using Shopify’s automatic discounts (not compare_at_price), the product pages won’t show the discounted price by default — even with Dawn.

You’ll usually need to dive into multiple templates to display it correctly.

For a no-code option, tools like Adsgun (https://apps.shopify.com/adsgun) detect your discounts and update the visible price dynamically — not just on the homepage or collections, but also the product pages, cart, etc.

Works with automatic + stacked discounts and doesn’t touch your theme files.

Might save a few hours (and a few gray hairs) if you’re running promos storewide.

If you’re using automatic discounts and don’t have compare_at_price set up, Shopify unfortunately won’t show the discounted price on product pages out of the box — only in the cart or checkout.

Bit of a frustrating limitation, especially with themes like Dawn.

You can hardcode a solution in Liquid like in the video linked above, but that gets tricky fast (especially with variant logic, sale scheduling, or site-wide discounts).

Another route: tools like Adsgun (https://apps.shopify.com/adsgun)) can detect your active automatic discounts and update all prices dynamically — including on the product pages — without requiring you to touch any theme files or update products manually.

Super useful if you’re running sales across lots of SKUs and don’t want to maintain it all by hand.

Hi this works great on the Trade theme, but is it possible to apply it to just one set of products? for example the 1970’s on my site pastposters which is an automated collection using the 1970’s tag ?

If possible would the code be applied within the Snippets/ price.liquid file at what line?

Many Thanks Jamie

How do you calculate the amount of revenue generated by the app? I see that Adsgun charges “+0.5% of revenue generated by Adsgun”

I’m in the market for an app that does this - and like others - are STUNNED that this isn’t core functionality in Shopify! There are lots of apps with this functionality, but many are brand new and have very few reviews.