I want to add a metafield for every variant in Shopify. My website is this. I tried everything it says in this article, but the metafield does't change when we select other variation, only after refresh. I guess it's something wrong with the code. Any solutions?
https://www.identixweb.com/an-ultimate-guide-to-shopify-variant-metafields-for-your-store/