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:
Queries the profile repository for
backInStockNotifyItem
items that have matching product and SKU IDs.Sends an e-mail to the addresses in the matching
backInStockNotifyItem
items.Deletes the matching
backInStockNotifyItem
items.
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 |
---|---|
| A unique identifier for the |
| The e-mail address to which the back in stock notification will be sent. |
| The SKU ID for the out-of-stock item. |
| 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. |
| The product ID for the out-of-stock item. |
| 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 |
---|---|
| A unique identifier for the |
| The product this |
| The ID of the site the product was viewed on. |
| 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.