Skip to content

Cart: The cart was emptiedΒΆ

Available since: 1.0.0

Provided tokens

Token Description
[cart] The cart entity.
[commerce_order_items] An array of order item entities.
[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 all items are removed from a cart. The [cart] token provides the cart order entity, and [commerce_order_items] provides the removed order items. Fires before the cart order is saved.