Commerce Reference Store adds two item descriptors to the profile repository, backInStockNotifyItem and recentlyViewedProduct.

backInStockNotifyItem Item Descriptor

The backInStockNotifyItem item descriptor supports functionality in the store.war/browse/gadgets/notifyMeRequest.jsp gadget that allows customers to request notification when an item is back in stock. A backInStockNotifyItem creates a relationship between an e-mail address to be notified and the product and SKU ID for the product that is out of stock. When the BackInStockNotification service receives notification, generally from an external system, that a SKU is back in stock, it does the following:

This section describes the backInStockNotifyItem item descriptor’s properties.

Note: You can find additional information on back-in-stock notification in the Inventory Management chapter.

Property

Description

id

A unique identifier for the backInStockNotifyItem.

emailAddress

The e-mail address to which the back in stock notification will be sent.

catalogRefId

The SKU ID for the out-of-stock item.

locale

Stores the customer’s locale when the back-in-stock notification request was made. This information ensures that the back-in-stock notification e-mail uses the same locale that was in effect when the request was made.

productId

The product ID for the out-of-stock item.

siteId

Stores the customer’s site ID when the back-in-stock notification request was made. This information ensures that the back-in-stock notification e-mail uses the same site ID that was in effect when the request was made.

recentlyViewedProduct Item Descriptor

The recentlyViewedProduct item descriptor supports the recently viewed products feature and it represents a single recently viewed product. A list of recentlyViewedProduct items is stored in each customer’s recentlyViewedProducts profile property. The recentlyViewedProduct item descriptor has the properties described below.

Property

Description

id

A unique identifier for the recentlyViewedProduct item.

product

The product this recentlyViewedProduct item represents.

siteId

The ID of the site the product was viewed on.

timeStamp

A timestamp for when the product was viewed.

Capturing these property values for each recently viewed product allows Commerce Reference Store to filter the list of recently viewed products to display only those that are appropriate for the current site context, as described in Filtering Products in the Recently Viewed List.


Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices