Shopping Cart widget events

This table shows the custom events available on the Shopping Cart widget:

Event name Type Payload
shoppingCart:orderline:beforeQuantityUpdate Blocking orderlineId, itemNumber, quantity, oldQuantity
shoppingCart:orderline:afterQuantityUpdate Non-blocking orderlineId, itemNumber, oldQuantity, newQuantity, response
shoppingCart:orderline:quantityUpdateError Non-blocking orderlineId, itemNumber, quantity, error
shoppingCart:orderline:beforeDelete Blocking orderlineId, itemNumber, itemName
shoppingCart:orderline:afterDelete Non-blocking orderlineId, itemNumber, itemName
shoppingCart:orderline:beforeBulkDelete Blocking orderlineIds, count
shoppingCart:orderline:afterBulkDelete Non-blocking deletedCount, orderlineIds
shoppingCart:template:beforeSave Blocking templateName, orderId, orderlineCount
shoppingCart:template:afterSave Non-blocking templateName, orderId, response
shoppingCart:checkout:beforeNavigate Blocking currentUrl, checkoutUrl, orderId, orderTotal
shoppingCart:cart:afterFetch Non-blocking orderId, orderlines, grandTotal
shoppingCart:cart:fetchError Non-blocking error, statusCode
shoppingCart:stock:afterFetch Non-blocking stockLevels, orderlineIds
shoppingCart:pagination:beforeChange Blocking currentPage, targetPage, pageSize
shoppingCart:pagination:afterChange Non-blocking currentPage, pageSize, totalItems
shoppingCart:matrix:beforeOpen Blocking itemNumber, styleReference
shoppingCart:price:afterDomUpdate Non-blocking orderlineId, priceValue, element
shoppingCart:stock:afterDomUpdate Non-blocking orderlineId, stockLevel, element
shoppingCart:transfer:beforeSubmit Blocking protocol, orderId, hookURL, returnTarget
shoppingCart:transfer:afterSubmit Non-blocking protocol, orderId