The scenarios described in this section provide content to JSP pages and use the slot/scenario/targeter mechanism described in Using Targeters, Slots, and Scenarios to Personalize Content for Customers.

categoryPromotions

The categoryPromotions scenario, located in /store/category, looks like this:

This illustration is described in the following text.

The categoryPromotions scenario has two segments. Both segments perform identical functions in that they provide an ATG slot with a promotionalContent item, but they use different targeters to determine which item to return.

To trace the full path of the categoryPromotions scenario, we must begin with the PromotionalContent-ATGSlot cartridges that exist on the Experience Manager-driven Category Page and Default Browse Page. Each page includes two instances of the PromotionalContent-ATGSlot cartridge, one that references the CategoryPromotionContent1 slot and another that references the CategoryPromotionContent2 slot. When these pages are rendered, their ATG slots are executed and request content.

The first segment in the categoryPromotions scenario is invoked when the CategoryPromotionContent1 slot requests content. To supply the slot with a promotionalContent item, the categoryPromotions scenario calls the CategoryPromotionContent1 targeter. This targeter returns different promotionalContent items, based on site context and the customer’s current location in the category tree. For example, when the current site is CRS Home and the customer is viewing the Gift Shop, Tables, or Home Accents category, CategoryPromotionContent1 returns the Save $10 on orders over $100 promotionalContent item, shown below.

This illustration is described in the preceding text.

The second segment is invoked when the CategoryPromotionContent2 slot requests content and it uses the CategoryPromotionContent2 targeter to determine which promotionalContent item to return.

For more details on the Category Page and the Default Browse Page and their use of the CategoryPromotionContent1 and CategoryPromotionContent2 slots, see the Using Cartridges in Commerce Reference Store chapter.

FeaturedProducts

The FeaturedProducts scenario, located in /store/homepage, looks like this:

This illustration is described in the following text.

The FeaturedProducts scenario is initiated when the FeatureProducts slot requests content. To satisfy the content request, the FeaturedProducts scenario invokes the FeaturedProducts targeter. This targeter returns 15 products, based on user segment and site context. The FeaturedProducts slot is then rendered on the Default Home Page in the main content area, as shown below:

This illustration is described in the preceding text.

For more details on the Default Home Page and its use of the FeaturedProducts slot, see the Using Cartridges in Commerce Reference Store chapter.

Theme

The Theme scenario, located in /store/homepage, looks like this:

This illustration is described in the following text.

The Theme scenario is initiated when the HomeTheme slot requests content. This slot appears on the Default Home Page and it is used to render a rotating splash image in the main content area of the page. To supply the slot with content, the Theme scenario calls the HomeTheme targeter. The HomeTheme targeter returns three promotionalContent items, based on user segment and site context, that contain the splash images. For example, the following illustration shows one of the rotating home page images for the Fashionista user segment on CRS Store US:

This illustration is described in the preceding text.

Copyright © 1997, 2014 Oracle and/or its affiliates. All rights reserved. Legal Notices