Partager via


Working With the Product Provider Web Part

The Product Provider Web Part allows a Web Part on the current page to communicate with Commerce Server 2009. All communications by Catalog Web Parts with Commerce Server 2009 are either through the Product Provider Web Part or the Product Query Web Part.

Note

Commerce Server 2009 has a restriction to make sure that only one Product Query or Product Provider Web Part is on the Web site page at a time. A developer can use the Extensibility Kit to remove the restriction. Open the Extensibility Kit and navigate to UI\Catalog\WebParts\ProductQuery\ProductQuery.cs to find the ThereIsOnlyOneProductProvider() method. A developer can modify this method to remove or alter the restriction.

Property Sheet

The following figure shows the Product Provider Web Part property sheet. The Product Provider 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 Modify Shared Web Part. This displays the property sheet. Expand the sections to see the relevant properties.

Dd451783.Vug_ProductProvider_WP_Properties(en-US,CS.90).gif

Properties

The following table lists and describes the properties in the Commerce Settings section.

Property

Type

Description

Default

Include "Cross Sells"

Boolean

When checked, includes cross-sell options when retrieving information.

False

Include "Up Sells"

Boolean

When checked, includes up-sell options when retrieving information.

False

Include "Variants"

Boolean

When checked, retrieves all product variant information from Commerce Server 2009.

False

Include "Relationships"

Boolean

When checked, will include all relationships.

False

Product Page Title

String

Title of the product page; the default of "%Product%" uses the product page title as it is in Commerce Server 2009.

%Product%

Channel

String

Specifies the channel used by the Product Provider Web Part.

"default"

Catalog

String

Specifies the catalog in Commerce Server 2009 that the Product Provider Web Part will connect to; enter the name of the catalog using the Commerce Server 2009 name (such as "Adventure Works Catalog").

NA

"Product Id" URL parameter

String

Key used to access the product ID in Commerce Server 2009.

"pid"

"Catalog" URL parameter

String

Key used to access the catalog in Commerce Server 2009.

"cid"

"Category Id" URL parameter

String

Key used to access the category in Commerce Server 2009.

"catalog"

See Also

Other Resources

Working With the Web Parts

Catalog Web Parts

Product Provider Web Part