Event Handler For When a Variant Is Changed#
Description#
Attribute Machine has a built in function you can implement which will allow you to call your own custom JS any time a product variant is changed. This is useful if you needed to load your own custom data based on an attribute/variant selection.
Snippet#
MivaEvents.SubscribeToEvent("variant_changed", function (product_data) {
// call your update or refresh here
});