![How To Show Discount on Product Page [Taste Theme]](/_astro/how-to-show-discount-on-product-page-taste-theme.MFaO8q7A_Z1IjPX7.webp)
Hey everyone, in this video tutorial we’re going to show you how to show a discount on your product page using the Taste theme.
This is a really great way to increase conversions and let your customers know that they’re getting a good deal. So let’s get started!
Price.liquid Code Update
Replace Line no. 85-86 in Price.liquid File with the following code:
<span class="badge price__badge-sale color-{{ settings.sale_badge_color_scheme }}">
-{{ compare_at_price | minus: price | times: 100 | divided_by: compare_at_price }}% OFF
</span>
Card-product.liquid Code Update
Replace Line no. 127-132 with the following code:
<span class="badge price__badge-sale color-{{ settings.sale_badge_color_scheme }}">
-{{ card_product.compare_at_price | minus: card_product.price | times: 100 | divided_by: card_product.compare_at_price }}% OFF
</span>
Base.css Code
Add the following on the bottom of the base.css file:
.card__badge .badge{
border-radius: 0;
font-size: 13px;
background-color: red;
font-weight: bold;
border: none;
}
.price .price__badge-sale {
border-radius: 0;
font-size: 13px;
background-color: red;
font-weight: bold;
border: none;
margin-top: 0 !important;
margin-bottom: 0 !important;
}
![How I Find Google Maps Leads in Minutes with Claude Desktop + BrowserAct [No Code]](/_astro/How%20I%20Find%20Google%20Maps%20Leads%20in%20Minutes%20with%20Claude%20Desktop%20_%20BrowserAct%20_No%20Code_.DiiNHRev_3N5M4.webp)
%20The%203%20Biggest%20Updates%20for%20Store%20Owners.CY244rkl_1XVeRg.webp)
![How To Connect Google Search Console with Shopify - [2027]](/_astro/How%20To%20Connect%20Google%20Search%20Console%20with%20Shopify%20-%20_2027_%20(Step-by-Step).DoPyjVIZ_Z20rrU7.webp)
![Image related to how to show discount on product page [taste theme]](/_astro/how-to-show-discount-on-product-page-taste-theme.MFaO8q7A_Zj3xHt.webp)

