How do I add " best seller" badge to product?

Amanda_Uprichar
Excursionist
42 0 12

I want it to go on the individual product page under the title AND on the collection page under the title. Please help!

URL: https://amandauprichard.com/

 

Also another question, I have a an existing tag "__with:Product-name" so that users will be suggested a matching product with the item. However, its coming up super small underneath the product. Please help again 🙂 

Here's the example: https://amandauprichard.com/products/ballad-top

Replies 4 (4)

Akibhusen
Shopify Partner
715 121 147

HI @Amanda_Uprichar ,

It's Lil bit tricky.

Just do one thing. Add the 'best seller' tag in the product and match the tags in the collection and product template in your theme file. Put the below code where you want to display the best seller tags.

 

{% for tag in product.tags %}
  {% if tag == 'best seller'%}
	<span >Best Seller </span>
  {% endif %}
{% endfor %} 

 

 

Amanda_Uprichar
Excursionist
42 0 12

Hmm this didn't work. Can you be more specific?

Akibhusen
Shopify Partner
715 121 147

HI @Amanda_Uprichar ,

 

can you please share which theme do you have?

It's just needs to add some specific code at collection and product liquid file.

can you share the code of product and collection file?

and have you added the tag in product?

 

Amanda_Uprichar
Excursionist
42 0 12

I have prestige theme with some customizations. I have tagged the product!