Hi - I am trying to add some text to a collection page, based on what collection the product is in.
We sell coffee, so if a visitor visits the coffee collection it should show the taste notes on the collection page. If the visitor goes to the equipment collection nothing should show.
I can add the taste notes field in, it just shows on every collection ;(
@abe2 - it is because shopify shares same template files for all collections.
To have different description, you will need to have different templates for different collections. If there are too many collections, then it is not feasible.
Thank you. Just to be clear - everything about the collection pages is fine - I just want to show one text line under above the price.
do I really need to create new collection templates to do that?
I just want to show one text line under above the price. do I really need to create new collection templates to do that?
@abe2 If there’s only a slight difference between the collection pages, then you don’t really need to create separate collection templates. Instead, you could use some Liquid control flow tags to show different content based on the collection. For example:
{% if collection.handle == 'coffee' %}
do something
{% endif %}