Accessing product meta fields via script editor

Jayaraj
Tourist
5 0 3

Can someone point me to an example on how to access product metafields via the script editor?

Reply 1 (1)

vic-vpv
Shopify Partner
1 0 0

Unfortunately, metafields are not exposed in the Script Editor:

If you're not expecting frequent changes to these metafields, and depending on your requirements, you might want to consider passing the metafield data through to the script editor as line item properties.