Update metafield when changing product variant

13 1 0

I'd like to display different metafield info based on the users chosen variant. What I'm trying to do is display a message like "10kg bag does not qualify for free shipping", when the user has chosen the 10kg variant. I've read some similar posts that mention changing the selectCallback function. Unfortunately, my theme (Canopy) doesn't support that as 'Themes stopped having a selectCallback function in 2016 - the Javascript for changing variants has changed a fair bit since then' - straight from my theme devs.

If anyone knows how I could achieve this through another method I'd love to hear how you did this.

Shopify Partner
1027 215 475



I understood your goal. It requires some custom javascript code.

Send me direct mail, I will help you to do it.


Thank you,


Shopify Expert | Skype: tejas.nadpara
- Like and Mark as an Accepted Solution if reply helpful
- Feel free to contact me on support@hexaecommerce.com regarding any help