Home > Contents > Index >
Commerce Context Tags
During a visitor's session, a visitor context is created for that visitor. Five types of objects are placed there:
- Current cart (see Cart Tags for descriptions of the cart JSP tags)
- List of segments for which the visitor qualifies
- List of promotions for which the visitor qualifies
- Time object that is used for calculating time-based rules
- Utility object that gives you access to product attributes
All of these objects, when present, are persistent throughout the visitor session (that is, they are stored in the Sites database and then flushed when the session ends). The visitor context is the rules engine plus any objects that have been placed in this context. There is one visitor context per session.
The rules engine is a Sites Engage component that uses a chaining algorithm to calculate the rules that define segments, recommendations, and promotions. It imposes the conditions, rules, and actions set up for segments, recommendations, and promotions on the objects placed in the visitor context.
The commerce context encompasses the visitor context and gives you access to it. The commerce context object tags are how you place objects in the visitor context. In other words, these tags are your interface to the visitor context.
Use these object tags to display recommendations and promotions on your application pages.
Note
Each JSP file containing commerce context tags must have the following directive at the top:
<%@ taglib prefix="commercecontext" uri="futuretense_cs/commercecontext.tld" %>
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.