Created by potrace 1.16, written by Peter Selinger 2001-2019

Miva Developer Docs


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
});