Setting a Product Template by tag or meta field

8 0 4

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)

Shopify Partner
1 0 0

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