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

Can I use product metafields outside the "Product information" section?

Can I use product metafields outside the "Product information" section?

duyentran_
Tourist
3 0 2

Hi everyone,

 

I’m working on customizing my product page and I’m trying to display a product metafield inside a custom text block in a different section (not in the “Product Information” section).

 

When I use the dynamic source tool, I can select the metafield in the text block settings. However, the value doesn't appear, even though the exact same metafield shows correctly when added in the “Product Information” section.

 

My question is:
Are product metafields only usable in the Product Information section? Or is there a way to use them in other sections on the product page?

 

Thanks in advance for any help!

 

Replies 6 (6)

Guleria
Shopify Partner
4299 825 1189

Hello @duyentran_ ,

 

You can use the with custom liquid block.

e.g.

{{ product.metafields.namespace.key }}

replace namespace.key with your actual value

 

Regards
Guleria

- Elevate Your Store with Expert Shopify Services. Email: guleriathakur43@gmail.com - Need a quick fix or a tailored customization? I’ve got you covered.
- Looking to enhance your pages? Try GEMPAGES- a powerful drag & drop page builder.
- Let’s make your store stand out. Get in touch today!
- My Apps: Productify Groups – Smart product grouping made easy.
duyentran_
Tourist
3 0 2

Hi @Guleria,

 

Thanks so much for your reply!

I tried using a custom liquid block, but unfortunately the value still doesn't show up on the page.

 

Is there anything else I might be missing?
The metafield displays correctly in the Product information section, but when I use the exact same code in a Custom Liquid or Text block in another section, nothing appears.

 

Really appreciate any further suggestions!

 

Best regards,
Duyen

Guleria
Shopify Partner
4299 825 1189

Can you please share your code and the meatfields screenshot you created ?

- Elevate Your Store with Expert Shopify Services. Email: guleriathakur43@gmail.com - Need a quick fix or a tailored customization? I’ve got you covered.
- Looking to enhance your pages? Try GEMPAGES- a powerful drag & drop page builder.
- Let’s make your store stand out. Get in touch today!
- My Apps: Productify Groups – Smart product grouping made easy.

devcoders
Shopify Partner
1654 190 564

Hello @duyentran_ 
Yes, you can use product metafields outside the "Product Information" section — but only if the section has access to the product object.

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!
duyentran_
Tourist
3 0 2

Hi @devcoders,

 

Thank you for your reply!

 

How can I check if the section or block has access to the product object? And if it doesn’t have access, how can I give it access?

 

Appreciate your help.

 

Br,

Duyen

devcoders
Shopify Partner
1654 190 564

Hello @duyentran_ 
Please send me the collaborator code. I will send you a store access request and give you a proper update.

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!