Working With the MiniCart Web Part

The MiniCart Web Part provides a compact view of a shopper's cart. This Web Part is usually placed on many pages of site content (such as the Product Details page), and is designed to reduce the number of requests it makes against the back-end system, instead caching required information in an HTTP cookie.

A placeholder exists in the Web Part that a site designer can populate. The page mark-up is not edited directly, but XSLT lets you customize the Web Part by adding links, images, DHTML, or JavaScript to the MiniCart Web Part. The available templates are stored in a Document library called 'Commerce Server Templates" which is located at the root of the site.

Web Part

To add the MiniCart Web Part to a page, you select it from the Web Part list. When first positioned on a page, there will no items in the shopping cart and no value:

Dd452179.vugminicartwebpartscreen1(en-US,CS.90).gif

Property Sheet

The following figure shows the MiniCart Web Part property sheet. The MiniCart Web Part property sheet lets site designers control some aspects of the Web Part's behavior and appearance. The property sheet is displayed by selecting the edit option on the Web Page (in Edit Page mode) and then selecting Edit Shared Web Part. This displays the property sheet. Expand the sections to see the relevant properties.

Dd452179.Vug_MiniCart_WP_Properties(en-US,CS.90).gif

Properties

The following table lists and describes the MiniCart Web Part properties.

Property

Type

Description

Default

Template To Display

String

Template file name.

Blank

Commerce "Basket" to use

String

Sets the name of the Commerce Foundation "Basket" that this web part will use. The default and recommended value is empty, indicating the default Basket.

Blank

See Also

Other Resources

Working With the Web Parts

Orders Web Parts

MiniCart Web Part