How to add conditional product labels for sales discounts?

https://www.physioworldshop.co.uk

Supply Theme

We would like a label on certain products, that show’s 10% off. We used an app but it is not fit for purpose and would just like to do it via code.

It should be conditional so the badge only displays when a certain metafield is active. Is this possible? It should show on collection pages and product pages.

This is the kind of thing we are looking for:

Hey @ChrisW3 ,

Yes this is definitely possible via code and you don’t need app for this. But it is difficult to suggest such changes here in forum as ‘Supply’ theme is not a free theme, and thus developer need to see the actual files and code to make this change properly. If you want, I can have a look at your problem and give you a solution.

Thanks

Yash Garg