An e-commerce event that represents when a user adds an item to their shopping cart. This class is part of the Salesforce Marketing Cloud Unified SDK and extends CartEvent to provide functionality for tracking add-to-cart actions in e-commerce applications.
A list of line items associated with the cart event.
1val lineItems: List<LineItem>
Type:List<LineItem>
Access: Read-only
Inherited from:CartEvent
category
The event category name. Category contains list of allowed values.
1open override var category: Event.Category
Type:Event.Category
Access: Read/write
Inherited from:EngagementEvent
priority
Priority level for this event.
1open override val priority: Priority
Type:Priority
Access: Read-only
Inherited from:EngagementEvent
Inherited Methods
attributes()
Returns the event attributes for this event.
1open override fun attributes(): Map<String, Any>
Returns:Map<String, Any> - A map containing the event’s attributes as key-value pairs.
Inherited from:EngagementEvent
name()
Returns the name for the event. This value must match the Event Name used when creating the event in the Marketing Cloud UI for any action to result from tracking this event.
1open override fun name(): String
Returns:String - The event name.
Inherited from:EngagementEvent
Related Types
LineItem
Data class that describes purchasable items for Cart & Order events.