AddToCart Method
This method is invoked to add an item to the Shopping Cart. It checks the input argument Action. Depending on the value of the Action field, the Shopping Cart takes different actions, as described in the following table.
Action | Method Invoked |
---|---|
AddToCart |
DefaultAddToCart |
Customize |
DefaultAddToCart |
QuickAdd |
QuickAdd |
AddTrainingItem |
AddTrainingItem |
AddEventItem |
AddTrainingItem |
AddEventSessionItem |
AddTrainingItem |
What the AddToCart method does is to create one or more records (for complex products) in the Quote Item business component in the current quote record (indicated by CurrentQuoteId) in the Quote business component.
If the product has extended attributes, it also copies the extended attribute values from the Product XA VBC business component to the Quote Item XA business component. The extended attributes for a product are in the XA Attribute Value business component. End users can select values for each modifiable attribute; these selections are stored in the Product XA VBC business component.
For example, if you add a product with four attributes to the Shopping Cart, you create one record in the Quote Item business component and four records in the Quote Item XA business component. The mapping is as follows:
Product to Quote Item
Product XA VBC to Quote Item XA