Enable multilevel business operations (BOPIS)
When enabled, BOPIS functionality lets you manage store levels at domain and attribute level, view your store data in the Store Details tab, and view how store context impacts the API call payload.
Enable BOPIS functionality
To enable BOPIS functionality for your domain:
-
Go to Administration > Domain Settings.
-
On the General Settings tab, in the Document Display Settings section, click Edit.
-
In the Multilevel Business Operations section, click the switch to Enable this functionality.
This will open the Document Display Settings page, where you can specify the level configuration that supports your business model.
Configure your store levels
To configure your store levels:
-
On the Document Display Settings page, in the Multilevel Business Operations section, select the number of levels which apply to your business model.
-
Select an entity from the REFERENCE ENTITY drop-down list.
-
Select an attribute associated with the above entity from the REFERENCE ATTRIBUTE drop-down list. This attribute will provide context when determining the value of a store-level attribute. For example, select Store.id if you intend to determine price or inventory based on Store.id.
-
In the DEFAULT VALUE field, enter a key that is referenced to return a default value if there is no store context.
Configure your store-level attributes
After selecting the store level for your domain, select which attributes will be store-level attributes, and choose the store level that will determine their values.
-
If an attribute is variable based on a single entity context, that is, varies by store, set it as a level 1 attribute.
-
If an attribute is variable based on two different entity contexts, that is, varies by store and group, set it as a level 2 attribute.
To configure your store-level attributes:
-
On the menu bar, go to Administration > Domain Settings > Attributes.
-
Click an attribute to edit it, or mark it as a store-level attribute.
-
To open the store level selection menu, click Mark As, and select the Store Level Attribute check box.
-
In the Store Level drop-down list, specify whether this is a level 1 or level 2 attribute.
No more than four store-level attributes can be active at one time. If you require more than four active store-level attributes, consult your Account Executive.
View your store data
To view your entities with store-level attributes:
-
In the menu bar, click Content Collection > Product and click a product.
-
In the Store Details tab, select a store ID from the Store ID drop-down list to view the attributes and values that store holds relative to the chosen product, such as inventory or price.
After data ingestion, the Store Details tab displays all store-level attributes and values for the specified product. You cannot edit store data on this page.
Add context to your API call
The API Explorer lets you view how the API request payload is structured.
To view the API request payload:
-
In the menu bar, click Developer Resources > API Explorer. This page allows you to select attributes from their corresponding drop-down list, and see how they refine the JSON data in your API response.
-
To see how they refine the JSON data in your API response, input the StoreID or Store GroupID in the Context/Store drop-down list, and click Build.
Specifying the storeID or Store GroupID in your search will refine your results so store-level attributes return correct values based on the context defined in your call.