다음을 통해 공유


How to Check Out a Basket

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

While a user is shopping on your site, a Basket object represents the user's shopping cart. When the user checks out, your site code processes the Basket by running several pipelines. After the user completes the checkout process, your site code converts the Basket into a PurchaseOrder.

This topic describes one possible scenario for implementing the checkout process in your site code.

Note

Your site should perform these steps in a transacted page.

You can modify the Basket, Total, and Checkout pipelines to customize the checkout procedure.

To check out a basket

  1. When the user initiates a checkout, collect all of the necessary information to process the order, such as the shipping address, payment information, and any coupons or other promotions to apply to the order.

  2. Run the Basket pipeline to make sure that information about the item, such as price and availability, has not changed since the user added the item to the shopping cart.

  3. Run the Total pipeline to calculate the total price of the order.

  4. Run the Checkout pipeline to complete the checkout process.

  5. Call the SaveAsOrder method to convert the Basket to a PurchaseOrder.

See Also

Other Resources

Orders System Runtime Scenarios

How to Add Items to a Basket

Orders Runtime Object Model

How to Convert a Basket to a PurchaseOrder