What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Setting a Product Template by tag or meta field

Setting a Product Template by tag or meta field

BillFromCanada
Tourist
8 0 6

Is there a way to set/change the Product Template by reading data elements in the Product Data?  For example, if we load a product and include a TAG like Pre_Sale in the Tag field, can that be accessed in code to cause the product to use a "Pre Sale" product template rather than the Default Product Template?

 

While most of our products use the default template, we have use cases to be able to set different templates based on a TAG or other field.

Reply 1 (1)

fredrikpersson
Shopify Partner
2 0 0

Hi, did you manage to find a solution to this?
/Fredrik