Sold out, Sale, New and Bestseller Collection Badges

Hi! I am using Woodstock theme, website: https://leadingsolutions.co.nz/.

I didn’t like the ‘sold out’ and ‘sale’ badges all over the collection and product pages so I added this code to my theme.liquid:


However, I would now like to showcase NEW and Bestseller badges and don’t mind re-adding the sale ones too. So I need to update the code to allow me to:

  1. Add a NEW badge by tagging a product
  2. Add a Bestseller badge by tagging a product
  3. Still use Sale badges
  4. Keep ‘sold out’ badges off
  5. Keep sale off the product page

This is what the sale badge was doing to my product page before:

Screenshot 2024-10-21 110613.png

This is what the sold out badge looks like if I remove that code (because I’ve deleted the words sold out in the theme settings):

This is what my sale badge looks like if I enable it but I don’t need it next to the price too:

These are my theme settings:

Hi @Franrulzok this is an advanced theme customization unless a theme already has a system for custom badges in the specific way you want to use tags instead of metafields.

For some themes there may be existing forum conversations to research, if a specific theme can’t be found also try looking at different theme names made by the same developer as there may be architectural similarities.

If you need this customization then contact me for services, or if you have access private message by clicking here (sloooower).
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.

Hi @Franrulzok ,

You may consider using a 3rd party app like Product Labels & Badges to enhance custom badges. You can customize colors, positions, and display pages according to your preferences.