Adding text under price in certain collections only

Mimishell
Tourist
5 0 1

Hello,

I am using the Impulse theme, and would like to add text under the price for certain items. For example , if I am having a clearance sale I would like to add text saying “ Enter code XYZ for 50% off” etc. is this possible?

Replies 2 (2)
amanbatra
Shopify Partner
12 2 1

@Mimishell 
Hi 
Yes, its possible.
You can add condition based on tag or collection and can display text. 
e.g. you can assign "sale" tag to any product then
you can add condition in code 
{% if product.tags contains 'sale' %} Enter code XYZ for 50% off {% endif %}

Is the solution works for you ? please Like and Accept Solution.
Need more help with theme customization and store development ?
WA: +917508271396, Email: amanbatra.developer@gmail.com, Skype: amanbatra.developer
Mimishell
Tourist
5 0 1

Thank you! Where do I place this code? I tried adding it at the end of “products.liquid” but it didn’t work