Have your say in Community Polls: What was/is your greatest motivation to start your own business?

How can I create multiple products with customised template

How can I create multiple products with customised template

MreenalChauhan
Tourist
7 0 2

Hi,

I have created customised template for my product: https://mgrow.club/products/design-strategy-for-next-billion-users

I have almost 110 products - all products can have same template but different content. Now problem is now I have to create 110 different templates based on the original one (link is mentioned above). Is there any solution wherein I can just create 1 template but create different products. I would prefer if I can do this without using any app.

Thanks for your help.

Replies 2 (2)

NomtechSolution
Astronaut
1245 113 154

Yes, you can create a single custom template and use it for multiple products in your Shopify store. Instead of creating separate templates for each product, you can leverage the flexibility of liquid code to dynamically populate the content based on the product data.

Here's an approach you can follow:

  1. Create a new custom template in your Shopify theme. You can duplicate an existing template or create a new one from scratch. Let's call it "custom-product-template".

  2. Open the "custom-product-template" file and modify it to include the desired layout and structure for your product page. This can include sections for product title, description, images, pricing, etc.

  3. Within the "custom-product-template", use liquid code to access and display the relevant product data. For example, you can use variables like {{ product.title }} to display the product title, {{ product.description }} to display the product description, and so on. Use liquid control flow statements like {% if ... %}...{% endif %} to conditionally display specific content based on the product data.

  4. Save the "custom-product-template" file.

  5. Now, when creating or editing a product in your Shopify admin, you can assign the "custom-product-template" as the template for that product. To do this, go to the product's settings, scroll down to the "Template" section, and select "custom-product-template" from the dropdown menu.

  6. Repeat this process for each of your 110 products, assigning the "custom-product-template" to each one.

MreenalChauhan
Tourist
7 0 2

Thanks for your reply. I am not coder. Here is the URL of my template. Is there anyone who can help me with this approach.

https://mgrow.club/products/design-strategy-for-next-billion-users