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

Product metafields not working with Liquid script

Product metafields not working with Liquid script

Gunny
New Member
6 0 0

I have some previously created metafields that are I can access with Liquid script reference like this: {{ product.metafields.Sail_Dimensions.Luff }}

The definition looks like this:

Screenshot 2024-07-07 at 7.43.16 PM.png

I created some new product metafields and a similar Liquid reference doesn't work: {{ product.metafields.custom.custom.max_turnbuckle_or_clevis_pin }}

 

The definition looks like this:

Screenshot 2024-07-07 at 7.45.57 PM.png

I notice the Storefronts access is slightly different on the newer metafield with access being Read instead of Read-limited on the metafields that do work properly. 

 

Any suggestions on how to resolve this issue?

 

Thanks!

Replies 5 (5)

AnneLuo
Shopify Partner
1138 211 235

Hi, @Gunny 

Just replace the code with {{ product.metafields.custom.max_turnbuckle_or_clevis_pin }}, then try again.

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to Email Me   

Buy Me A Coffee

Gunny
New Member
6 0 0

Sorry I had a typo in the original post, the correct code is:

{{ product.metafields.custom.max_turnbuckle_or_clevis_pin }}

and does not work.

AnneLuo
Shopify Partner
1138 211 235

I need to check in the admin. So I need to access your store as a collaborator if possible. 

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to Email Me   

Buy Me A Coffee

Gunny
New Member
6 0 0
Maybe we can do a zoom and I can share my screen?
AnneLuo
Shopify Partner
1138 211 235

I tried it in my own testing store and there was no problem.

 

AnneLuo_2-1720508067932.png

AnneLuo_3-1720508098809.png

 

AnneLuo_1-1720506809691.png

 

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to Email Me   

Buy Me A Coffee