All things Shopify and commerce
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
My webpage has multiple product collections - each of the collections have different product specifications and care instructions.
I added a collapsible block on my product page. However, when I enter data in one of the tabs, it changes for all products. I tried creating a metafield for the same and tried linking it to specific products, however, the text/data does not show in the selected block/tab.
How can I link the row contents to a dynamic source metafield that I have created and make sure that it is displayed on th eproduct page?
Solved! Go to the solution
This is an accepted solution.
Hello @Element4,
If you want to show dynamic data in a collapsible block on the product page, follow these steps:
Go to Dashboard -> Settings -> Custom Data -> Products -> Add definition, and write the name (e.g., Dynamic Information). Select the type 'single line text,' choose one value, and save it.
Navigate to Online Store -> Themes -> Edit Code. Search for the file main-product.liquid, find collapsible_tab, and paste the provided code. I have attached a screenshot showing where to place the code.
This is an accepted solution.
Hello @Element4,
If you want to show dynamic data in a collapsible block on the product page, follow these steps:
Go to Dashboard -> Settings -> Custom Data -> Products -> Add definition, and write the name (e.g., Dynamic Information). Select the type 'single line text,' choose one value, and save it.
Navigate to Online Store -> Themes -> Edit Code. Search for the file main-product.liquid, find collapsible_tab, and paste the provided code. I have attached a screenshot showing where to place the code.