The atg.projects.store.assembler.cartridge.CategoryRecommendationsContentItem
class represents the content item that the ProductSpotlight-ATGCategoryRecommendations
cartridge returns to the renderer. The CategoryRecommendationsContentItem
class has two properties:
categoryId
: The ID of the current category.numberOfRecords
: The number of recommended products to be displayed.
The /atg/endeca/assembler/cartridge/handler/CategoryRecommendations
component, which is of class atg.projects.store.assembler.cartridge.handler.CategoryRecommendationsHandler
, is responsible for creating and populating the CategoryRecommendationsContentItem
object. The CategoryRecommendationsHandler
class is an extension of the com.endeca.infront.cartridge.NavigationCartridgeHandler
class.
The CategoryRecommendations
component uses the methods provided by the StoreCartridgeTools
component to get the ID for the current category. The CategoryRecommendations
component then stores this ID, along with the value specified in Experience Manager for the number of records to display, in the CategoryRecommendationsContentItem
object. It is the renderer’s responsibility to take this information stored in the content item, make an appropriate request to the Oracle Recommendations engine, and render the results. The CategoryRecommendations
component has one configurable property, storeCartridgeTools
, which references the StoreCartridgeTools
component that CategoryRecommendations
should use. Out of the box, this property is set to /atg/endeca/assembler/cartridge/StoreCartridgeTools
.