Skip to content

Cart: Add order item to cartΒΆ

Plugin ID: eca_commerce:cart_order_item_add

Available since: 1.0.0

Provided tokens

Token Description
[user] The current user.
Alias: current_user
[cart] The cart entity.
[commerce_order_item] The order item 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. This is only available if ECA is configured to always run under a specific account.

Reacts when an order item is added to the cart. The [cart] token provides the cart order, [commerce_order_item] the added order item, and [quantity] the quantity. Fires before the cart order is saved.