Pseudo-Algorithm for DefaultAddToCart

Follow these steps when using a pseudo-algorithm for DefaultAddToCart:

  1. Get the Quote, Quote Item, and Quote Item XA business components.

  2. Call AddHeader to make sure there is a current quote for adding an item, What AddHeader does is to make sure there is a current quote, if there is not a current one. AddHeader will create a new quote and set the CurrentQuoteID profile attribute value to the Row ID of the newly created quote record.

  3. Create a new record in the Quote Item business component.

  4. Populate that line item with information from Product the user has selected.

  5. Check the Action input argument:

    If Action = Customize, then call ReConfigCxProd to launch the customizable product run-time view.

  6. End.