Personalizing a storefront page based on inventory

Version:

Personalization rules allow you to deliver content that is relevant to a customer visiting your web store. Your storefront responds to personalization rules in real time by showing specific content, by hiding content, or by adjusting the behavior of a component. You can create personalization rules based on many different criteria including goals, campaigns, products purchased, and so on. The following personalization rules are specific to the storefront:

Personalization RuleExample
Based on the content of the cart
the quantity of all products in user's cart Where the quantity of all products in the user's cart is equal to 10
the user's cart total Except where the user's cart total is less than 2
the quantity of product in user's cart And where the quantity of product 56042326 in the user's cart is equal to 1
Based on inventory
product has stock count Current product has stock count that is less than or equal to 50
product has stock status Current product has a stock status that is equal to Back orderable
Product with ID has stock count Product with ID 6042891 has stock count that is equal to 250
Note

Inventory status can be Back orderable, In Stock, Out of stock, or Pre-Orderable. Valid comparison values include Is equal to, Is not equal to, and Is in list. For further technical details, see Inventory domain model.

For example, you can personalize the storefront page based on an inventory rule that examines the inventory count and hides the Add to cart button when there are no items in the inventory, as shown in the following figure.

Add to cart button hidden on live storefront site
If you have suggestions for improving this article, let us know!