Solved

What is the correct code for using reference metafields in Shopify?

boski1
Shopify Partner
8 2 0

Hi All

 

I am using new metafields. But it reurns the value like  gid://shopify/OnlineStorePage/83483295905 instead of page information

I have used this {{product.metafields.my_fields.ref_page }} 

Would someone know what would be the code to do that?

 

Thank you,

Accepted Solution (1)

boski1
Shopify Partner
8 2 0

This is an accepted solution.

Issue is resolved use {{ product.metafields.my_fields.refrence_test | metafield_tag }} code

View solution in original post

Replies 2 (2)

boski1
Shopify Partner
8 2 0

This is an accepted solution.

Issue is resolved use {{ product.metafields.my_fields.refrence_test | metafield_tag }} code

XtalS
Tourist
8 0 4

Hi , Can you tell me where to add the code please?