How to Show Discount for Automatic Discount. [Dawn Theme v10]

Topic summary

A user shares a workaround for displaying automatic discounts on product pages in Shopify’s Dawn theme v10. The solution involves:

Implementation steps:

  • Create a custom metafield called “Sale.Discount” (Integer type) under Products in store settings, exposed to Storefront
  • Modify the Price.liquid file by adding code that checks for a “Sale” tag on products
  • The code calculates discounted prices using the metafield percentage value
  • Optionally modify sale badge markup to display discount details

Key limitations:

  • Only controls display on product and collection pages via Price.liquid
  • Not suitable for “Buy 1 Get 1% OFF” type promotions
  • Requires manual setup: adding “Sale” tag to products and entering discount percentage in the metafield

Current status:
One user reports the code isn’t working despite adding the “Sale” tag. The original poster clarifies that both the tag AND the metafield with discount numbers are required for the solution to function. Another user requests more detailed instructions on creating and configuring the metafield in the admin panel.

Summarized with AI on November 14. AI used: claude-sonnet-4-5-20250929.

You need to create metafield in store settings>Custom Data. Choose the Product category. Name it ‘sale. Discount’. Then in the product pages in admin, add percentage number (without % sign).