Hello, I have a Dawn theme that I am using. I am trying to add the collapsible box on the product page. I have been able to create them successfully ( details, Care, and Disclaimer). I want to be able to type directly into the collapsible boxes in the individual product pages as I have different kinds of products. When I typed in the template. all of them are carrying the same information. I want to be able to have the option of typing directly for all. I tried the meta field approach. I don’t think I am doing it right. Any help will be highly appreciated. Thanks
Hey @Diya,
This is common issue in Shopify. When you try to update the content in the collapsible row then it’s apply the same content to all of the products of that specific product template.
For this you need to understand the flow, about how it’s work and how you can input the different data for each product.
Let suppose you have 50 products in your shopify store. And you’ve created 5 templates. And let say each template having the 10 products. In this case, you need to create a product metafield.
Refer to this article, on how to create a product metafield: https://help.shopify.com/en/manual/custom-data/metafields
Once you have created the metafield then you have to Connect Dynamic Source.
If you could share your store url and then I can deeply look into it.
You will need to create metafields or create different product templates for each products
Hello,
Thanks much for reaching out. I have been trying to work on it. I created the meta fields but am not able to connect them to the collapsible box. This is my website. Any help will be much appreciated. https://artwarebyruhh.com/
Hi @Diya ,
You’re seeing the same text on every product because the collapsible content is coming from the theme template, not from the individual product data. To make each collapsible box editable per product, you have two options:
Best method: Use Metafields (per-product content)
- Go to Settings → Custom data → Products.
- Create new metafields for each section you need, e.g.:
Details→ type: Multi-line textCare→ type: Multi-line textDisclaimer→ type: Multi-line text
- Save the metafields.
- Go to Online Store → Themes → Customize → Product page and open your collapsible blocks.
- For each collapsible item, click Dynamic source (database icon) and connect it to the related metafield.
Now each product will show its own text, and you can fill the metafields when editing the product.
Hi @Diya
Use alternate templates to edit text content per resource in the theme editor.
And or dynamic sources if that part of a theme supports them to simply wire things together to other places where you edit content such as in the product admin with metafields, or even metaobjects.
https://help.shopify.com/en/manual/online-store/themes/os20/theme-structure/templates#create-a-new-template
https://help.shopify.com/en/manual/online-store/themes/theme-structure/sections-and-blocks#dynamic-source-selector
https://help.shopify.com/en/manual/custom-data/metafields/displaying-metafields-on-your-online-store
https://help.shopify.com/en/manual/custom-data/metaobjects/connecting-to-your-online-store
Read The Friendly Manually thoroughly for the software your business relies on lot of important stuff in there.
Hi, this should work. Just make sure that you try to do this following a PRODUCT metafield and a Multi-line text, as he said here. Because there are some metafield types that are not accessible via the theme editor, I think.
