Show a discount's price on product pages
Shopify shows an automatic discount in the cart and at checkout, not before. So when you take 20% off a collection, its product pages still show the full price. The Discounted price block for your Online Store theme shows the price customers will pay, on the product page: the regular price crossed out, the price with the discount, and a badge like 20% off.
It shows your automatic product discounts (Amount off products) and collection discounts (Amount off collections), fixed prices included. The discount itself is still given in the cart and at checkout, by the same discount.
Use it to:
- Show a sale before the cart, like $40.00 with $50.00 crossed out and 20% off.
- Show wholesale customers their price. A discount with a Customer tags condition shows only to logged-in customers with the tag.
For tiers like Buy 2, save 10%, use the Quantity breaks block instead. It shows volume discounts.
Plan: Deals & Rules or Buddy. Works on every Shopify plan except Starter, with a theme that takes app blocks (Shopify’s free themes and most themes made since 2021).
Add it to your product page
Section titled “Add it to your product page”-
Create or open an automatic Amount off products or Amount off collections discount in Checkout Buddy, and save it.
-
In its Product pages card, click Add to product page. Shopify’s theme editor opens on your live theme’s product page, with Discounted price added.
-
Drag it under your theme’s price. Change its text or colors if you like, then click Save.
-
Open a product the discount covers to see it. The card in Checkout Buddy now shows Added.
One block on your product template covers every product: it shows nothing on products without a discount. Home lists the block too, in the Online Store theme card.
Which discounts show
Section titled “Which discounts show”A discount shows when all of these are true:
- It’s automatic, not a discount code.
- Eligibility is All customers or Specific markets. With markets, it shows only to customers shopping in those markets.
- It gives each item its own discount: Percentage, Fixed amount with Apply discount to each item, or Fixed price on a product discount, and Percentage (each product), Fixed amount (each product) or Fixed price (each product) on a collection discount. An amount or percentage shared between the cart’s items doesn’t show.
- It applies to items in the Cart, not only to items a block or a Product offer adds.
- Its conditions are about the customer only: none, Customer tags, User is a customer or User is authenticated as a customer. A condition on the cart, like Cart subtotal, can’t be checked on a product page.
- It uses condition set 1.
- A collection discount has no Total discount quantity limit. A Line discount quantity limit is fine.
When a discount won’t show, its Product pages card in Checkout Buddy says so and why.
Conditions on the customer are checked on the page: a discount with Customer tags shows only to logged-in customers with the tags. A discount with Active dates shows from its start until its end.
What customers see
Section titled “What customers see”- The price follows the variant the customer picks, and the purchase option when your product sells subscriptions.
- In the customer’s currency, converted at Shopify’s exchange rate like checkout converts the discount.
- Rounded like checkout: a percentage is rounded down to the cent, so 20% off $699.95 is $559.96.
- Items already on sale follow the discount’s own setting: discounted as usual, left out, or discounted from the compare-at price.
- Several discounts on one product: the one that takes the most off shows.
Settings
Section titled “Settings”In Shopify’s theme editor, select the block:
- Product: the product page’s own, or pick one for a featured product section.
- Discount title: show only one discount, by its title.
- Crossed-out price: the regular price, the compare-at price when it’s higher, or none.
- Show the price when no discount applies: turn on to use the block in place of your theme’s price.
- Badge: percent off, amount off, or none. Badge text takes your own words:
{percent}and{amount}are what the price saves, likeSave {amount}. - Text under the price: a line shown with a discounted price, like “Discount applied in your cart”.
- Size, Alignment and colors. For anything else, add CSS for
.cb-pricein Theme settings → Custom CSS.
The block shows nothing
Section titled “The block shows nothing”Check, in this order:
- The discount is on and automatic. A discount that’s turned off, a discount code, or one whose Active dates haven’t started or have ended doesn’t show.
- The product is in the discount, and so is the variant picked. A product discount covers only the variants you ticked.
- The discount is one the block shows (see which discounts show).
- You’re the right customer. A discount with Customer tags shows only to logged-in customers with the tags, and a discount for a market only in that market.
- Your plan has it. On the Free plan the block shows nothing: the Product pages card says so.
- The block is on this template. In the discount’s Product pages card, it should say Added. If your products use several templates, add it to each.
- It was changed in Shopify. After turning a discount on or editing it on Shopify’s Discounts page, open Checkout Buddy once to bring your product pages up to date.
Things to know
Section titled “Things to know”- The discount is given in the cart either way. The block only shows it: removing the block doesn’t change who gets the discount.
- Two product discounts in one cart: Shopify gives a cart only the bigger of two product discounts that don’t combine. A customer who buys items from two of your discounts can pay full price for one of them, though its page showed the discount. To give each item its own discount, tick Combines with product discounts on both.
- Customer segments can’t show. A discount with Specific customer segments in Eligibility is given at checkout, but a theme can’t tell who’s in a segment. Use a Customer tags condition to show a price to a group of customers.
- “User is not authenticated” doesn’t show: a guest could log in at checkout and lose the discount.
- Your theme’s own price stays as your theme shows it. The block is a separate line, unless you hide the theme’s Price block.
- Collection and search pages don’t show the discounted price: the block is for product pages and featured product sections.
- Changes made outside Checkout Buddy: if you turn off, delete or edit a discount on Shopify’s Discounts page, open Checkout Buddy to bring your product pages up to date. Changes saved in Checkout Buddy show right away.
- Collections that aren’t on your Online Store can’t be read by your theme. For a discount on one, Checkout Buddy keeps a list of its first 100 products, updated when you save the discount or open Checkout Buddy.
- Saved in your store: the discounts the block shows are kept in a metafield on your store that only Checkout Buddy can change, so no other app can alter the prices it shows. Your product pages don’t call Checkout Buddy’s servers, so they stay fast.
- Languages: the badge’s own text comes in English, French, German, Spanish, Italian, Dutch, Portuguese and Japanese, in the language the customer shops in.
