Product template
Create a new product template
You can customize the Default product template, and any modifications will affect all pages using that template. To display certain pages differently, create a new template based on an existing one in your theme.
Create a new product template
Steps:
In the theme editor (Customize), use the page selector to open Products > Create template.
Add Name in the provided field for the new template.
Select an existing product template to base on, then click Create template.
Make necessary changes > Save.
Apply a new template to a product
You can change an assigned template for the following sections in a published theme:
You change an assigned template in your Shopify admin. The template options that display are based on the available templates only in your current live theme.
Steps:
From your Shopify admin, go to Products.
Click a product that you want to apply a new template to.
In the Theme template section, click the drop-down menu and then select the template that you want to apply to your product.
Click Save.
You can read more documents from shopify
Resources assigned to that template will be displayed with the default template until you assign a different one.
Managing your templates
To rename or delete a template, you need to use the code editor. Editing a template file might cause issues with your online store.
When you delete a template, any online store resources that had the template assigned to them are displayed with the default template until you assign a different one.
Rename a template
Steps:
From your Shopify admin, go to Online Store > Themes.
Find the theme with the template that you want to rename, and then click … > Edit code.
In the code editor, find the templates folder.
Click the name of the template that you want to rename, and then click the pencil icon.
In the Rename file dialog, enter a new template name in the File name field.
Click Rename file.
Delete a template
Steps:
From your Shopify admin, go to Online Store > Themes
Find the theme you want to delete a template from, and then click … > Edit code.
In the code editor, find the templates folder.
Click the name of the template that you want to delete, and then click the trash can icon.
In the dialog, click Delete file.
Last updated