How can I put a custom text on products under a specific collection only?

Highlighted
New Member
7 0 0

Hi,

 

How can I put a custom text on products under a specific collection only? For example, I need to put "WOMEN'S TEXT HERE" before the product description on all products that are under Women's Shoes collection ONLY. And other collections would be a different text.

 

Thank you

0 Likes
Highlighted
Trailblazer
174 24 35

You can create different products template for the "different custom text". And assign this template to product which is used the custom text feature. 

Add the custom text line item code in these templates according your needs.

 

Ex-

A new product template for Women products

A new product template for Men products

A new product template for kids products

 

And so on...

 

Thanks

For Design, Development and custom changes Hire Me.
If your problem solved then Like & Accept this Solution.
Email ID: silencewebsolutions@gmail.com
0 Likes
Highlighted
Shopify Expert
154 17 21

You could check the products collection and add an if statement to display the text if the product is part of that specific collection:

https://shopify.dev/docs/themes/liquid/reference/objects/product#product-collections

 

If you need help with this, you can reach out to a Shopify Expert:

https://experts.shopify.com/

W3trends is one of the leading app developers in the Shopify ecosystem. We can handle anything E-commerce or App related for your business. Feel free to message me if you need any work done!
0 Likes