Skip to content

Cart: Update order item on cart

Available since: 1.0.0

Provided tokens

Token Description
[cart] The cart entity.
[commerce_order_item] The order item entity.
[commerce_order_item_original] The original item data before the update.
[event] The event.
[event:machine_name] The machine name of the ECA event.
[session_user] The user account that dispatched the event, regardless if ECA is processing models under a different account.

Reacts when a cart order item is updated (e.g., quantity change). The [cart] token provides the cart order, [commerce_order_item] the updated item, and [commerce_order_item_original] the item before the update. Fires before the cart order is saved.