Rules
If your store requires multiple catalogs, add catalog rules to control when a catalog is displayed. A catalog rule contains a catalog plus the criteria under which to display the catalog.
You cannot create catalog rules for organization catalogs.
You can use catalog rules to schedule a catalog to appear during a particular period, such as on a specific date or during summer. The catalog might offer different pricing during this period. The pricing depends on the associated price book.
The following scenarios provides a few examples for using catalog rules.
- Multiple geographical regions. Display different catalogs in different regions with suitable pricing or combine product hierarchies from two different regions to display in a third region.
- Multiple channels. Display different catalogs based on how a shopper accesses your store, such as through a mobile app or a web storefront.
- Direct to business versus direct to customers. Offer different products and prices for business customers versus retail customers.
- Preferred accounts. Offer special pricing to a group of users while displaying a standard price catalog to other users.
- Preferred customers. Offer special pricing to preferred customers while displaying a standard price catalog to all other shoppers.
- Reward programs. Enable reward programs where catalog prices drop after a certain spending level is reached.
- Product sales. Offer sale items for a limited time.
- Standard pricing. Display a default catalog to the shoppers who do not meet the criteria of the other catalog rules.
You can define a catalog rule with any of the following criteria.
- Accounts. List the accounts that should see a catalog. When a user has logged in with the account, they see the configured catalog.
- Customers. List the customers that should see a catalog. When the customer is logged in, they see the configured catalog.
- Channel. Specify a shopper experience, such as web storefront or mobile app. Set up the channel to retrieve the catalog from the catalog rule that matches that channel.
- Other tags. Create your own user-defined tags. For example, you might want to tag by regions or you might want to distinguish between business and consumer customers.
If a catalog rule has no criteria defined, it is the default catalog rule.
Resolving catalog rules
When there is a request for a catalog, the store displays the catalog with the rule that matches the most attributes of the shoppers context.
The request triggers the following steps:
- Compares the shoppers context against the defined catalog rules.
- Determines the best match.
- Retrieves the catalog associated with the matching catalog rule.
The follow examples show how the best match might be resolved:
- A shopper matches one of the
customer_ids
in one catalog rule only. The catalog for that catalog rule is displayed. - A shopper matches one of the
customer_ids
in one catalog rule only, but doesnʼt match any of thetags
specified in that catalog rule. Because there are no other catalog rules for thiscustomer_id
, the catalog for the catalog rule is displayed because it is the best match. - A shopper is browsing a store using the stores mobile app, which matches
channel=mobile
in two catalog rules. The catalog displayed depends on matches with thetags
orcustomer_ids
attributes. If there is no other matching attribute, the first catalog rule found by the store is used. The best practice is to create catalog rules that cover all cases so that you avoid this situation. - An unknown shopper is browsing the only channel offered by the seller. The store displays the base catalog.
📄️ Creates a new catalog rule
If you have multiple catalogs, create catalog rule resources. With catalog rules, you can display different catalogs to different shoppers. For example, you can display a preferred pricing catalog to a few special customers. Or you can display one catalog to shoppers using your website and a different catalog to shoppers using your mobile app. Finally, you can define custom criteria by creating tags.
📄️ Gets all authorized catalog rules
Retrieves all authorized catalog rules.
📄️ Get a catalog rule by ID
Get a catalog rule by ID
📄️ Updates a catalog rule
Specify whichever attributes you want to change. The values of the other attributes remain the same. If the attributes section is empty, the catalog rule is not updated.
📄️ Deletes a catalog rule
Deletes a catalog rule