liquid icon indicating copy to clipboard operation
liquid copied to clipboard

how to get the variant id from the shopify product meta field

Open sanjay-makwana-avidbrio opened this issue 3 years ago • 0 comments

i want show the meta field data based on active variant only.

i can get the variants id

https://shopify.dev/api/liquid/objects/variant?shpxid=e237008e-6097-4B11-053E-38CA2395805F#variant-id

as same metafiled shoud be return the variant id on meta field object

https://shopify.dev/api/liquid/objects/metafield

{{ variant.metafields.my_fields.variant_option_url .type }}

{{ variant.metafields.my_fields.variant_option_url.value  }}

one more return parameter need to be add 

like this 
{{ variant.metafields.my_fields.variant_option_url.variant_id }}

sanjay-makwana-avidbrio avatar Dec 23 '21 07:12 sanjay-makwana-avidbrio