Skip to content

Event Handler For When a Product Price is Changed#


Description#

Custom event for when a product price changes. This will work with or without inventory variants.

Snippet#

MivaEvents.SubscribeToEvent("price_changed", function (product_data) {
    console.log(product_data);
});

Response Object

{
    "product_code": "shirt",
    "price": 10,
    "additional_price": null
}