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

Amanda_Uprichar
Tourist
9 0 3

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

0 Likes
Akibhusen
Excursionist
196 37 68

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 %} 

 

 

Akibhusen Shekh | Shopify Developer
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
0 Likes
Amanda_Uprichar
Tourist
9 0 3

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

0 Likes
Akibhusen
Excursionist
196 37 68

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?

 

Akibhusen Shekh | Shopify Developer
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
0 Likes
Amanda_Uprichar
Tourist
9 0 3

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

0 Likes