Cart Features
In the International Retail Site the shopping cart is displayed to a user after the user clicks the "cart" button, located in the upper right corner of most pages, as well as the Add to Cart button.
The Cart display contains a currency drop-down list that takes its values from each row in the currency conversion table. The user can click the down arrow to pick a currency and then click the Convert Currency button to convert the currency into the currency chosen from the list. This modifies the prices in the cart and shows the users their purchases in the new currency. The new currency is displayed using the localization properties for the user.
Note
- The values in the currency conversion table are approximate. In a production system this code should be replaced with functions that can supply the current rate of exchange.
The cart and order management architecture is extensible to support different cart types, for example, holiday lists, wedding lists, birthday lists, user defined lists, and order history.
The cart is composed of a functionally isolated section of code in order to facilitate reuse and extensibility. The code can be easily modified to create different cart types.
The following table lists the data displayed in the cart for each line item.
Property | Type | Required | Description |
---|---|---|---|
Remove | Check box | Yes | Allows users to remove individual line items. |
Quantity | Edit Field, Real | Yes | Allows users to modify the number of items in the cart. Setting this property to zero will remove the item from display. |
Item name | String | Yes | Human readable product name.
The name is linked to the appropriate product page. |
Item discount | String | No | Show any discounts associated with this line item. |
Localized Price | Currency | Yes | Localized version of the price.
If the price is localized, an asterisk (*) is displayed and a disclaimer is placed at the bottom of the cart page to inform the user that the price is approximate. |
The following table lists all order level information for the shopping cart.
Property | Type | Req | Description |
---|---|---|---|
Order level discounts | Currency | No | Show all order level discounts, including free shipping, if applicable. |
Localized subtotal | Currency | Yes | Allows users to view the sub total. |
Discount comments | Text | No | Allows users to view short descriptions of the applied discounts. |
Currency disclaimer | String | Yes | If the currency for the user is not the site currency, then display a disclaimer noting that the price is approximate. |
Item discount comments | String | No | Show discount descriptions for the discounts that are applied to the cart. |
See Also
Exploring the International Retail Site
Step 1: Adding Data to the Site
Copyright © 2005 Microsoft Corporation.
All rights reserved.