How to show discounted price in automatics discount dawn theme

Hi, I saw some questions about this subject but none of them was solved.

i want to do a % discount, and i want the price of the discounted products to be updated with the price after discount, like the compere at price but I can’t go through all the products to do it manually.

Is there a way to do it?

Thanks in advance!

Hello @Anonymous_d65591fabfe73ef1cdbdaa0a1489d355 ,

To display automatic discounts on your Shopify store using the Dawn theme. Here’s a combined approach that incorporates the best aspects of previous suggestions and addresses potential issues:

Method 1: Using Shopify’s Built-in Discount Functionality (Recommended for Most Users)

  1. Create an Automatic Discount:

    • Go to your Shopify admin panel.
    • Navigate to Discounts > Create discount.
    • Set up your discount details:
      • Choose a discount type (percentage or fixed amount).
      • Enter the discount value.
      • Define the discount conditions (e.g., minimum order value, specific products or collections).
    • Click Save.
  2. Verify Discount Application:

    • Add a product to your cart that meets the discount criteria.
    • Proceed to checkout and ensure the discount is automatically applied.

Method 2: Code-Based Approach (For More Customization or Complex Discounts)

Important Note: This method requires editing your theme code. It’s recommended to duplicate your theme before making changes and to have basic coding familiarity. If you’re not comfortable with code, consider hiring a Shopify expert or using a Shopify App (see Method 3).

  1. Access Theme Code:

    • Go to your Shopify admin panel.
    • Navigate to Online Store > Themes.
    • Click Actions > Duplicate next to your Dawn theme (to avoid modifying the live theme).
    • Click Actions > Edit code.
  2. Modify the price.liquid File:

    • In the theme code editor, locate the price.liquid file (usually under Sections).

Find the code snippet that displays the product price. It might look similar to this:

{{ product.price | money_format }}
  • Replace the above code with the following:
{% if product.compare_at_price > product.price %}
  {{ product.compare_at_price | money_format }}
  {{ product.price | money_format }}
{% else %}
  {{ product.price | money_format }}
  {% if active_discounts %}
    You save {{ active_discounts.first.amount | money_format }}
  {% endif %}
{% endif %}
​
    • This code checks if a discount is active and displays the discounted price along with the original price (if available). You can customize the CSS classes (original, price, price-discount) to style the discount information.
  1. Save Changes:

    • Click Save.

Method 3: Using a Shopify App (For Easier Management)

Several Shopify apps can help you manage automatic discounts and display them on your product pages. These apps often offer a more user-friendly interface and additional features compared to code editing. Here are some popular options to consider:

  • Automatic Discounts by Booster Apps
  • Discounts by POWr
  • Discount Automations by Automizy

Additional Considerations:

  • If you use multiple automatic discounts, test your store thoroughly to ensure they stack correctly.
  • Consider using a discount announcement bar or banner to highlight your promotions alongside the automatic price updates.

By following these steps, you can effectively display automatic discounts on your Shopify store using the Dawn theme, enhancing the user experience and potentially increasing sales.

  1. Booster Apps does not have an “Automatic Discounts” app.
  2. POWR.io doesn’t have a “Discounts” app. They do have a “Sales Pop Up” app, but that’s different from automatic discounts.
  3. There is no “Discount Automations” app in the App Store, and Automizy (an email marketing automation software) has no Shopify integration.

Hi מלבושים,

If you would like to show automatically discounted prices on product pages, then you can use our app, Regios Automatic Discounts.

Every theme can use our “Discounted Price” app block to automatically apply discounts on product pages.

And depending on what theme you’re on (or if you do custom setup), you can also integrate our app to display automatically discounted prices on collection pages, the home page, and the product recommendations section.

If you have any questions about this, just reply, and I’ll be happy to help.

Best,

Tobe

Hi, thanks for replying.

I can’t find the code you told me to replace. adding my price.liquid file here:

{% comment %}
Renders a list of product’s price (regular, sale)

Accepts:

  • product: {Object} Product Liquid object (optional)
  • use_variant: {Boolean} Renders selected or first variant price instead of overall product pricing (optional)
  • show_badges: {Boolean} Renders ‘Sale’ and ‘Sold Out’ tags if the product matches the condition (optional)
  • price_class: {String} Adds a price class to the price element (optional)
  • show_compare_at_price: {Boolean} Renders the compare at price if the product matches the condition (optional)

Usage:
{% render ‘price’, product: product %}
{% endcomment %}
{%- liquid
if use_variant
assign target = product.selected_or_first_available_variant
else
assign target = product
endif

assign compare_at_price = target.compare_at_price
assign price = target.price | default: 1999
assign price_min = product.price_min
assign price_max = product.price_max
assign available = target.available | default: false
assign money_price = price | money
assign money_price_min = price_min | money
assign money_price_max = price_max | money
if settings.currency_code_enabled
assign money_price = price | money_with_currency
assign money_price_min = price_min | money_with_currency
assign money_price_max = price_max | money_with_currency
endif

if target == product and product.price_varies
assign money_price = ‘products.product.price.from_price_html’ | t: price: money_price
endif
-%}

{%- comment -%} Explanation of description list: - div.price__regular: Displayed when there are no variants on sale - div.price__sale: Displayed when a variant is a sale {%- endcomment -%}
{%- if product.quantity_price_breaks_configured? -%} {%- if show_compare_at_price and compare_at_price -%} {%- unless product.price_varies == false and product.compare_at_price_varies %} {{- 'products.product.price.regular_price' | t -}} {% if settings.currency_code_enabled %} {{ compare_at_price | money_with_currency }} {% else %} {{ compare_at_price | money }} {% endif %} {%- endunless -%} {%- endif -%} {{ 'products.product.price.regular_price' | t }} {{- 'products.product.volume_pricing.price_range' | t: minimum: money_price_min, maximum: money_price_max -}} {%- else -%} {{ 'products.product.price.regular_price' | t }} {{ money_price }} {%- endif -%}
{%- unless product.price_varies == false and product.compare_at_price_varies %} {{ 'products.product.price.regular_price' | t }} {% if settings.currency_code_enabled %} {{ compare_at_price | money_with_currency }} {% else %} {{ compare_at_price | money }} {% endif %} {%- endunless -%} {{ 'products.product.price.sale_price' | t }} {{ money_price }}
{{ 'products.product.price.unit_price' | t }} {{- product.selected_or_first_available_variant.unit_price | money -}} /  {{ 'accessibility.unit_price_separator' | t }}  {%- if product.selected_or_first_available_variant.unit_price_measurement.reference_value != 1 -%} {{- product.selected_or_first_available_variant.unit_price_measurement.reference_value -}} {%- endif -%} {{ product.selected_or_first_available_variant.unit_price_measurement.reference_unit }}
{%- if show_badges -%} {{ 'products.product.on_sale' | t }} {{ 'products.product.sold_out' | t }} {%- endif -%}

hi @Anonymous_d65591fabfe73ef1cdbdaa0a1489d355 ,

To implement the same kindly refer the below code file name would be card-product.liquid for DAWN theme as file may vary depends on theme and version.

{%- assign difference = card_product.compare_at_price | minus: card_product.price -%}
{%- assign float_difference = difference | times: 1.0 -%}
{%- assign discount_fraction = float_difference | divided_by: card_product.compare_at_price -%}
{%- assign discount_percentage = discount_fraction | times: 100 | round -%}
{{- discount_percentage }}

To implement the same on product page and line number details request you to refer the video.

Don’t forget to mark answer as solution if it helps.

Hi מלבושים ,

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

You can generate the discounted price text with one click (it will follow the discount percentage / amount of the automatic discount), without having to go through all the products manually.

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-1742291025954.png

Hope this can help!

Regards,

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

@Anonymous_d65591fabfe73ef1cdbdaa0a1489d355 Totally feel you — I had the exact same issue.

You want to apply a % discount and have it visibly reflected on product and collection pages, without manually editing every product.

Unfortunately, Shopify doesn’t update the price visuals when you use their discount engine — it only shows at checkout.

That’s why “compare-at price” edits don’t scale unless you do it manually or script it.

I ended up using a tool called Adsgun (https://apps.shopify.com/adsgun) — it connects your Shopify discount rules to the storefront and automatically shows the discounted price + compare-at price everywhere.

No edits, no bulk exports.

Might be worth checking out if you’re stuck in the same loop I was.