Home > Contents > Index >
Template Tag TOC  |   Alpha TOC  |   Tag Family TOC  |   Purpose TOC  |   Annotated TOC  |   Index 

 

COMMERCECONTEXT.GETRECOMMENDATIONS

Retrieves and lists the assets that match the recommendation constraints passed to the tag.

Syntax

Parameters

COLLECTION (required if collectionid not specified)
Input parameter. Name of the recommendation. The sort and selection criteria defined in the recommendation are used to create the list of possible assets. You can constrain this list by using the MAXCOUNT argument, defined below. If there are any promotions in place that override this recommendation, it substitutes the name of the promotion, instead.

COLLECTIONID (required if collection not specified)
Input parameter. ID of the recommendation. The sort and selection criteria defined in the recommendation are used to create the list of possible assets. You can constrain this list by using the MAXCOUNT argument, defined below. If there are any promotions in place that override this recommendation, it substitutes the ID of the promotion, instead.

LIST (optional)
Input parameter. name of the list of assets you want to be used as the input for the calculation. This argument is applicable only if the recommendation named by COLLECTION is a context-based recommendation. Columns are assettype and assetid.

VALUE (optional)
Input parameter. Default rating for assets that do not have one. If you do not declare a value, unrated assets are assigned a default rating of 50 on a scale of 1-100.

MAXCOUNT (optional)
Input parameter. Maximum number of assets to return. Use this value to constrain the list of recommended assets.

LISTVARNAME (required)
Input and output parameter. As input, name you want to assign to the list of assets returned on output. Its columns are: assettype and assetid.

FILTER (optional)
Input parameter. A Boolean value: true specifies that no assets in the input list can be returned as output; false (default) allows input assets to be returned as output.

deptype (optional)
Input parameter. Default value is unknown which logs unknown dependencies. When the value is set to exist or exact and promotion cannot override this recommendation, it does not log unknown dependencies.

Description

This tag returns a list containing up to the specified number of recommended assets. The recommendations, and the returned order of them, are based on the details of the referenced recommendation asset. This tag automatically calculates segment affinity and promotion affinity for the current visitor, if they have not yet been calculated. For information about creating recommendations, including context-based recommendations, see the Sites Developer's Guide.

NOTE: This tag also causes compositional dependencies to be recorded for all assets that contribute to the returned lists. However unknowndeps will be logged in the following scenarios:


  Home > Contents > Index >

Oracle XML Tag Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.