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

Collapsible Row not showing text of Metafile

Collapsible Row not showing text of Metafile

ddddrs
Tourist
5 0 1

Hi I'm trying to insert different descriptions for different products by using metafiles. And I have 2 issues.

 

1. When adding the metafield to the collapsible row i.e. "Description", the text of the field does not how. Could you please help? Hopefully no need to input a code since I would prefer to adjust everything from the settings / custom data secton.

Screenshot 2024-05-02 at 12.00.28.png

2. Is there a way to add more than 100 characters description using multi-line text in a metafile? 

 

 

Thank you!

 

Replies 5 (5)

saim007
Shopify Partner
609 74 103

@ddddrs 

1. Go to Edit code > product template and find the exact place of the description tab in your template and write the code in below format-

<p>{{ product.metafield.product_description }}</p>

For example I just used above Metafield key name, in your case it will be different so use your metafield key instead of this, once you do this your text will be show.

2. And for the add more than 100 character use multi-line text content type.

Saim | Shopify Partner Expert

Was I helpful?

Buy me a Coffee

🙂
Hire me   to unlock the full potential of your e-commerce store 🙂
ddddrs
Tourist
5 0 1

Hi thank you, but I would like to populate the metafield code just by dragging down the field into the collapsible row settings from the theme's portal (not going to the edit code window) 

 

and even with multi-line it does not let me more than 100 characters

Vinsinfo
Shopify Partner
460 158 157

@ddddrs Please check whether you have followed all the steps mentioned below to insert different descriptions for different products by using metafields. Let me know whether it is helpful for you.

 
Step 1: Create a metafield definition
1. From admin, go to "Settings" -> "Custom data".
2. In the Metafield definiton section, click "Products".
3. Click "Add definition".
4. Name your metafield definition like "description" or your custom name and click "Select type" and select the "Multi-line text" like in the below attached screenshot.
Vinsinfo_0-1714656274248.png
5. Save the metafield.
 
Step 2: Add values to product metafields
1. From admin, go to "Products".
2. Click a product, at the end of the product page, the created product metafields will be displaying.
3. Click the metafield that you have created in the above steps, enter value for it that you want to display.
 
Step 3: Display Metafields in FrontEnd
1. From admin, Go to "Online Store" -> "Themes"
2. Click "Customize" button in the current theme.
3. Go to the product page and select "Add block" like in the below attached screenshot.
4. Select "Collapsible row" block, then click on the "Collapsible row" block to edit.
5. Click the "Connect dynamic source" icon near the "Row content" field like in the below screenshot.
Vinsinfo_2-1714657000054.png

6. Click the "Row content from page" dropdown and select "Product". This is the important step to follow. Check whether you have selected "Product" from the dropdown.

Vinsinfo_3-1714657096489.png

Vinsinfo_4-1714657167249.png

 

7. Search the created metafield which is created with "Multi-line text" and select it to display.
Vinsinfo_5-1714657251027.png
 
Now, the metafield value will be displayed like in the below image.
 
Vinsinfo_6-1714657343050.png

 

 
2. Is there a way to add more than 100 characters description using multi-line text in a metafile?
Yes, you can add more than 100 characters description using multi-line text in metafield. To achieve that, choose the type "Multi-line text" while "Select type" in creating metafields.
 
Please provide your support by click "Like" and "Accepted" if our solution works for you. Thanks for your support.
Please reach out to bizdev@vinsinfo.com for any enquires related to Shopify.
Our Services: Custom Theme Development, Theme Customization, Custom Feature Implementation, Data Migration, Custom APP Development, Website Optimization and Google Merchant Center Support
KenBayard
Visitor
1 0 0

Same issue here, followed instructions, nothing shows. The raw shows, the title, but no metafield info displays.

k0rina
Visitor
1 0 0

Finally!!! The important step was what was missing. Problem solved, thank you so much!