I'm using Shopify's new meta field feature for my product variants and I want to change metadata after the user changes the variant.
Currently the variant has the following metafields:
variant_image_1 ----> file
variant_image_2 ----> file
variant_image_3 ----> file
These are going to populate the product image gallery. So after a user selects a green shirt, they will only see the green shirt images etc.
error: "json not allowed for this object"
Is there any way to get the file URL for the metadata images?
This is my liquid code:
We had to go about it differently.
Currently, we are outputting all variant images with liquid, and filtering through them via the `variant id`. I haven't found any way to output a file URL after fetching the meta fields, unfortunately.