Using Product API to change product theme template

Using Product API to change product theme template

TritonJK
Shopify Partner
16 0 2

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
Shopify Staff
2873 312 821

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