Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.

Using Product API to change product theme template

TritonJK
Shopify Partner
15 0 0

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
2677 288 737

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