In ATG Commerce, a shopping cart is an Order in an INCOMPLETE state. The shopping cart stores the information about the items a given customer wants to order and their associated quantities and prices. In addition, it stores the shipping and payment information for the order.

This chapter provides page developers with information on how to manage shopping carts on a commerce site. It includes the following sections:

Understanding the ShoppingCart Component
Provides information on the ShoppingCart component, which stores a customer’s current and saved shopping carts.

Managing Shopping Carts
Provides information on retrieving, creating, modifying, and saving shopping carts.

Many of the code examples provided in this chapter are taken from the JSPs in the commerce sample catalog. For more information on the sample catalog and how to run it, see About the ATG Commerce Sample Catalog section.

For additional examples of how to manage shopping carts, you can refer to the ATG Commerce reference applications – the Pioneer Cycling store (for ATG Consumer Commerce) and the Motorprise store (for ATG Business Commerce). For detailed information on these reference applications, see the ATG Consumer Commerce Reference Application Guide and the ATG Business Commerce Reference Application Guide.

Note: Because a shopping cart is, by definition, an Order in an INCOMPLETE state, the terms “shopping cart” and “order” are used interchangeably in this chapter.

 
loading table of contents...