Set Up NetSuite
To display correlated and related items in your web store, perform the following steps:
Add Related Items on Item Records
Related items must first be added to an item record to display in your web store. See Related Items for information about linking related items to an item record.
Correlated items can not be customized. These are determined by the shopper's purchasing history and are automatically stored on each item record as read-only information.
Define Required Field Sets
If you are using the Checkout Application within a Site Builder site (Site Builder Extensions edition), the required Fields Sets are defined in the configuration within the SspLibraries module. Normally, you do not need to perform additional configuration for related and correlated items to appear.
The Item.KeyMapping File
The Item.KeyMapping.js
file defines the following three Related Items properties, which map information returned from the Item Search API:
-
relatedItems – Related items
-
relatedItemsDetail – Related items in the Product Details Page (PDP)
-
correlatedItemsDetail – Correlated items in the PDP
The following code snippet from the Item.KeyMapping.js
file shows these mappings. This file is located within the Item
module. However, for pre-Elbrus releases of SuiteCommerce Advanced, the file is located within the ItemsKeyMapping
module.
// @property _relatedItems Related items
, _relatedItems: 'related_items'
// @property _relatedItemsDetail _relatedItemsDetail Related items in the PDP.
, _relatedItemsDetail: 'relateditems_detail'
// @property _correlatedItemsDetail Correlated (Up-sell) items in the PDP.
, _correlatedItemsDetail: 'correlateditems_detail'
To ensure that the necessary information from the Search API is available, define the following required Field Sets in your Web Site Setup page. For more information about defining Field Sets, see Define Field Sets.
Name |
Field Set ID |
Fields Included in Field Set |
---|---|---|
Correlated Items |
correlateditems |
The same fields as included for search. |
Correlated Items Details |
correlateditems_details |
correlateditems_detail: Correlated Items (Detail) |
Related Items |
relateditems |
The same fields as included for search. |
Related Items Details |
relateditems_details |
relateditems_detail: Related Items (Detail) |
For detailed descriptions of these fields, see Derived Fields for Field Sets.
If you are using a setup script, these field sets are automatically defined. See Set Up Initial Field Sets for information about setting up field sets with a script.
For information about the search fields you should use, see Prepare the Web Site Setup Record.