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.

Using Product API to change product theme template

Using Product API to change product theme template

TritonJK
Shopify Partner
16 0 3

Hello!

 

I am wanting to use product api to upload products to my store, but each product has its own theme template in my theme. Am I able to insert what theme template I want each product to go to?

Reply 1 (1)

Liam
Community Manager
3108 344 902

Hi TritonJK

 

Yes - you'd use the `template_suffix` property of the product API. This lets you specify a particular Liquid template file that the product should be applied to. 

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog