Looking to add a simple discount badge on product page.

Looking to add a simple discount badge on product page.

Drazdauskas
Explorer
56 0 11

We recently updated our theme (Flow by Eight).

For some reason they removed some functionality that I deem to be very important, so hopefully someone can help me add this functionality back into my store.

It's specific to the product page.

See current product page:-

Drazdauskas_0-1727454277920.png


See old version where discount % was shown...

Drazdauskas_1-1727454438444.png

 


I want to bring this functionality back to my theme - but improve upon it and display it better... something like the below but have it say "x% Discount"

Drazdauskas_3-1727455788157.png

 

Frustrating because the badges are already displaying in places across the website, but the theme doesn't allow me to do it natively and I'm not knowledgable enough to implement on my own.

Seems pretty simple but any help would be appreciated







Replies 7 (7)

Sam416
Shopify Partner
35 2 4

Hi @Drazdauskas 

I see you are having issue with displaying discount badge on the product page in new theme. You can achieve this by adding the discount tag to the product you want to offer discount and need to add the code snippet to product template that will check for discount tag and add badge if found the discount tag to the product. I can help you to achieve this functionality. Let connect. That

Shopify Expert | E-commerce Specialist | Custom Shopify App Development | Shopify Theme Customization & Bug Fixing | Buy Me A Coffee| Hire me| Contact Me on WhatsApp
Drazdauskas
Explorer
56 0 11

I don't want it pull from a product tag... rather use its existing logic of just displaying the product badge if there is a sale price vs compare at price...

Sam416
Shopify Partner
35 2 4

Yes! It can be done using price and compare at price. Need to modify product template code to implement it.

Shopify Expert | E-commerce Specialist | Custom Shopify App Development | Shopify Theme Customization & Bug Fixing | Buy Me A Coffee| Hire me| Contact Me on WhatsApp

Drazdauskas
Explorer
56 0 11

Still looking for a solution if anyone can help

Amanda_Fordeer
Shopify Partner
112 8 29

Hi @Drazdauskas

 

If you're considering using a 3rd party app, you should try Product Labels&Badges.

Amanda_Fordeer_0-1727511391627.png

If you find my suggestion helpful, please give it a like or mark it as a solution!
And discover more approaches to:
Streamline invoicing process Boost sales with labels & badges Add social proofs & create FOMO
Or get valuable updates and private deals regarding Shopify here.
Drazdauskas
Explorer
56 0 11

Thanks for suggestion but I don't want to use an app for such a simple thing

 

Thanks

PaulNewton
Shopify Partner
7176 634 1489

Double check if a feature is/was actually part of the old theme, and how , either through the themes docs, or an unmodified backup of the initial theme.

It's easy to lose track of customizations or app sub-features(such as discount/pricing apps generating badges in this case).

 

If it was a native feature still double check if a new method isn't being used to enable badge displays, some themes use comparison price others require tags/metafields or alternate templates to avoid merchants automatically misapplying sales without active intent to do so.

 

@Drazdauskas  failing all of the above if you need such customization , or fix?, then contact me for services. Either as a theme migration, or customization to re-enable/re-add this missing behavior.

It can drastically help if there is an unmodified original copy of the old version upon which to compare theme changes.

Contact info in forum signature, or slower private message by clicking here  if you have access.
ALWAYS provide context please, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.

 

Good Luck.

Contact [email protected] for the solutions you need


Save time & money ,Ask Questions The Smart Way


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

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