Assign product template to a collection?

Highlighted
Excursionist
58 0 4

Hi- is there a way to assign a specific product template to all products in a particular collection?

0 Likes
Highlighted
Shopify Staff (Retired)
Shopify Staff (Retired)
5711 0 146

There is you just need an alternate template: https://help.shopify.com/themes/customization/store/create-alternate-templates

You could do this dynamically using something like product type as well and then use conditionals to pull in the layouts that would live in separate snippets.

 

{% if product.type == 'this' %}
{% include 'this-layout' %}
{% else %}
{% include 'that-layout' %}

'this-layout' and 'that-layout' would be snippets that hold your entire product layouts for each scenario.

 

http://shopifyplus.com ::: http://twitter.com/bacchus
0 Likes
Highlighted
Excursionist
58 0 4

Thanks Jaimie.  I created an alternate template, but I would have to assign them one by one to each product :-(

I am looking to do it dynamically.  I don't know how to create snippets.  I was looking for a basic tutorial.  Any suggestions?  Am I limited to just two options for the conditionals?

 

0 Likes