Cart: An entity was added to the cart¶
Available since: 1.0.0
Provided tokens
| Token | Description |
|---|---|
[cart] |
The cart entity. |
[commerce_order_item] |
The order item entity. |
[entity] |
This is a purchasable entity. |
[quantity] |
A float of the quantity. |
[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 purchasable entity (e.g., a product variation) is added to the
cart. The [cart] token provides the cart order, [entity] the purchasable
entity, [commerce_order_item] the destination order item, and [quantity]
the quantity. Fires before the cart order is saved.