This guide covers the built-in way, the code way, the app way, and what a sale does to a print-on-demand margin. For the bigger picture on product pages, variants and store copy, see our guide to products, variants, bulk edits and store copy.
What is the difference between a sale price and a discount?
A sale price changes the price on the product itself, while a discount takes money off later, in the cart or at checkout. That difference decides what the shopper sees on the product page.
- Sale price (compare-at). You lower the price and keep the old one as the "compare-at" price. The compare-at price is the higher "was" price your theme crosses out. Both prices can show on product pages and collection pages, but only the sale price shows at checkout, per Shopify's sale pricing guide.
- Automatic discount. It applies by itself when the cart qualifies. No code is needed.
- Discount code. The shopper types a code at checkout.
Here is the catch. Savings from automatic discounts and codes always show crossed out at checkout. But to show them crossed out on product and collection pages, you need a third-party app or a Shopify Partner, according to Shopify's sale pricing guide.
How do I set a sale price with the compare-at price?
You set it on the product page in your Shopify admin. The steps on desktop are:
- Go to Products and click the product.
- To change one variant, click the variants link in the Variants section. A variant is one buyable version, like a Large Black tee.
- In the Price section, click Compare at.
- Type the original price in Compare-at price.
- Type the new price in Price.
- Click Save.
The compare-at price must be higher than the price, or no sale shows. Shopify's own example is a $30 seasonal tee marked down to $10, with $30 as the compare-at price and $10 as the price (Shopify sale pricing guide).
To mark down many products at once, use the bulk editor. Select products, click Bulk edit, then add the Compare-at price column, as Shopify's bulk editing guide explains. If you change prices across hundreds of products, our walkthrough on bulk uploading inventory in Shopify covers the CSV route and its traps.
Why does my sale badge not show on collection pages?
Your sale badge usually goes missing because your variants have mixed compare-at prices. A collection page shows the one price story that fits every variant, so a mix breaks it.
According to Shopify's troubleshooting notes, these all cause the problem:
- Some variants have a compare-at price and some are blank.
- Some variants have a compare-at price of $0.00.
- Variants have different compare-at values.
The product page still looks right, because it shows the one variant that is selected. To fix it, give every variant a compare-at price higher than its price, or clear the field fully. A $0.00 compare-at price is not the same as an empty one, per Shopify.
This bites print-on-demand stores often. Your supplier is the company that prints and ships for you, and it may charge more for 2XL and 3XL. So you price those sizes higher, then forget to give them a compare-at price.
How do I show a percentage-off badge like "20% OFF"?
Many themes already show a "Sale" badge when the compare-at price is higher than the price. Your theme decides where and how it looks, as Shopify notes.
Change the badge words without code
To change "Sale" to words like "Holiday deal", you do not need code. Go to Online Store, click the … menu next to your theme, then Edit default theme content. Search for "Sale" and type your new words, as shown in Shopify's theme wording guide.
Show the real percentage with a short theme edit
To show the exact percent, you edit theme code once. Liquid is Shopify's theme language. Shopify says to edit code only if you know some HTML and CSS, and only on a theme you have bought (Shopify's code editing guide).
- Go to Online Store > Themes, click …, then Duplicate. This is your backup.
- On the copy, click … then Edit code.
- In Dawn and many themes built on it, open
snippets/price.liquid. Find the line that prints the sale badge text. - Replace the badge text with this one line:
{{ target.compare_at_price | minus: target.price | times: 100 | divided_by: target.compare_at_price }}% OFF - Save and preview the copy, then publish it.
In Dawn's price snippet, target is the variant being shown. Shopify stores prices in cents, so the math stays exact. Say the compare-at price is $35.00 and the price is $28.00: (3,500 − 2,800) × 100 ÷ 3,500 = 20, so the badge reads "20% OFF".
If you want a dollar badge instead, use {{ target.compare_at_price | minus: target.price | money }} off. That reads "$7.00 off" in the same example. Our guide to Shopify product page template code shows where these files sit.
What if my theme is old or has no badge?
Older free themes like Debut are no longer updated, and their file names differ. Use the search box in the code editor to look for compare_at_price across all files. The file that prints it is the one to edit. If nothing turns up, an app is the safer path.
How do I show an automatic discount on the product page?
Shopify does not show automatic discounts on the product page out of the box. You have three ways around that:
- Use a compare-at price instead. If the sale is for everyone, a compare-at price shows on the page with no app.
- Add a plain text note. Put "20% off all hoodies this week, taken off at checkout" in a text block on the product template, using the theme editor.
- Install a discount display app. These apps read your live discounts and show the crossed-out price on product and collection pages.
Keep the limits in mind. You can have at most 25 active automatic discounts, and that count includes app discounts, according to Shopify's automatic discount guide.
Which discount display app should a small store use?
Search the Shopify App Store for "discount display" and you will find several apps. They show automatic and code discounts next to the price, add badges, or both.
App pricing changes often, so check each listing on the day you install. Look for three things:
- A free plan or trial that covers your order count.
- Support for your theme, so the badge updates when a shopper picks a new size.
- Clean removal, so no stray code stays in your theme after you uninstall.
For a small store, try the compare-at price and the theme edit first. They cost nothing.
Should I show percent off or dollars off?
No public data settles this. Test it: run percent for two weeks, then dollars for two weeks, and compare add-to-cart rate. That is the share of visitors who add the item to their cart.
Can I show a compare-at price and an automatic discount together?
Yes, and they stack, so check your margin first. The compare-at price lowers the product price, and then the automatic discount comes off again at checkout.
Discounts also apply in a set order. Product discounts apply first, then order discounts on the new subtotal, then shipping discounts, per Shopify's guide to combining discounts. Nothing stacks unless you turn on combinations for each discount.
A print-on-demand margin example
Say you sell a hoodie. Your margin is what you keep from each sale after costs.
- Normal price: $45.00. Supplier cost: $24.00. You keep $45.00 − $24.00 = $21.00 before ads and fees.
- Compare-at sale: price $38.00, compare-at $45.00. You keep $38.00 − $24.00 = $14.00.
- Add a 15% automatic discount: $38.00 × 0.85 = $32.30. You keep $32.30 − $24.00 = $8.30.
The badge shows 15% off ($45 → $38), but the shopper pays $12.70 less than full price. That is 28% off. If you spend about $10 in ads to get one order, the stacked sale loses money on every hoodie.
The rule for print-on-demand is simple. Your supplier cost does not drop when your price does. So pick one sale tool at a time, and work out what you keep before you turn it on.
How do sale prices show in ChatGPT and other AI shopping channels?
Your theme does not control how sale prices show in AI channels that find products through Shopify Catalog, like ChatGPT and Microsoft Copilot. If your store is eligible, you can choose whether Shopify Catalog uses the price or the compare-at price as the list price for AI agents, per Shopify's sale pricing guide. Each AI channel then decides whether to show the old price next to the new one.
How Victor runs a sale for you
Victor is the AI employee at PodVector AI, the print on demand AI. He creates Shopify discounts and changes prices across your catalog. He works out what each sale leaves you per order, using the real supplier cost from Printify, Printful or Gelato.
Ask him to "put every hoodie 20% off through Sunday." Victor sets the prices, creates the discount, and rewrites the sale line in your listing text. On Monday he puts the prices back and writes a short report on what sold. You can try Victor free.
If a sale empties stock on a blank, our guide to a connected inventory Shopify app shows how to keep counts in sync. To refresh sale copy across many listings, see our Shopify product description generator guide.
FAQs
Can Shopify show a discount on the product page without an app?
Yes, if you use a compare-at price. Set the old price as the compare-at price and the new one as the price, and most themes show the old price crossed out. Automatic discounts and codes need an app or theme code to show there.
Why is my automatic discount not showing on the product page?
That is how Shopify works. Automatic discounts show at checkout, not on the product page. To show them earlier, use a discount display app, a theme edit, or a text note on the product template.
Why does my sale show on the product page but not the collection page?
Your variants likely have mixed compare-at prices. Give every variant a compare-at price higher than its price, or clear the field fully. A $0.00 compare-at price still counts as set.
Is a sale worth it for a print-on-demand store?
Only if you still make money per order after the supplier cost and ads. Work it out first: sale price, minus supplier cost, minus ad cost per order. If the answer is near zero, run a smaller sale or a free shipping offer instead.