This section describes an example of content targeter site override rules.
Note: The example in this section is based on Oracle Commerce Reference Store, which is configured to illustrate best practices for setting personalization rules in a multisite environment. For information about installing Commerce Reference Store, see the Commerce Reference Store Installation and Configuration Guide.
Commerce Reference Store ships with a number of targeters. The targeter described in this example, CategoryPromotionContent2
, returns different promotionalContent
items that inform the customer about various promotions. The promotionalContent
item returned is based on site context (the site the customer is currently on) and the customer’s current location in the category tree.
CategoryPromotionContent2
defines a default rule set, which is used by CRS Store US, and override rule sets for the CRS Home and CRS Store Germany sites.
When the current site is CRS Home, CategoryPromotionContent2
shows the 10% off plus Free Shipping promotionalContent
item when the customer is part of the Young user segment. The following illustration shows the CRS Home Site Override rule set.
![This illustration is described in the preceding text.](media/image74.png)
When the current site is CRS Store Germany, CategoryPromotionContent1
returns the following:
If the customer is viewing the Shoes, Men, or Women category, show the Free Scarf with all orders over $200
promotionalContent
item.If the customer is viewing the Gift Shop or Home Accents category, show the Get 2 Free Gifts with any Woman’s Jacket
promotionalContent
item.
The following illustration shows the CRS Store Germany Site Override rule set.
![This illustration is described in the preceding text.](media/image75.png)
When the current site is CRS Store US, CategoryPromotionContent1
returns the following:
If the customer is viewing the Home Accents, Men, or Women category, show the Free Scarf with all orders over $200
promotionalContent
item.If the customer is viewing the Shoes or Gift Shop category, show the Get 2 Free Gifts with any Woman’s Jacket
promotionalContent
item.
The following illustration shows the default rule set.
![This illustration is described in the preceding text.](media/image76.png)