Show % discount on a Product, Show Discount in Product page & home page using debut theme

HChoxi
New Member
1 0 0

Hello Experts,

I am using the Debut theme and I have set my item price but haven't set compare-at-price. Instead, I am using Automatic Discounts.

I would like to set discounts on a particular collection and also would like to show strikethrough for original price with % OFF & sale price.

I would also like to set discounts on all products in coming weeks.

Can you please help me with that? This is on the collections page and individual product pages as well as home page.

Below are some examples to show what changes I am looking for my website.

HChoxi_0-1636692795248.png

 

 

HChoxi_1-1636693309705.jpeg

 

 

Reply 1 (1)
PaulNewton
Shopify Partner
3503 234 688

Logic for calculating Automatic Discounts only happens when a product is added to the cart

https://shopify.dev/api/liquid/objects/line_item#line_item-line_level_discount_allocations 

 

This is why the compare at price is used to hold the discount price.

If you are in fact using the compare at price there are many posts on creating a % display on the forums. 

What important thing did you learn this Black Friday?


Answers powered by coffee Buy Paul a ☕ Coffee for more answers or donate to eff.org

Problem Solved? ✔Accept and Like solutions to help future merchants

Confused? Busy? Buy a custom solution paull.newton+shopifyforum@gmail.com