All things Shopify and commerce
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.
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:
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".
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.
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.
Save the "custom-product-template" file.
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.
Repeat this process for each of your 110 products, assigning the "custom-product-template" to each one.
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
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024