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

 

commercecontext:discounttempcart

Examines the current promotion list to determine whether there are any appropriate discount rules.

Syntax

Parameters

cart (required)
Input parameter. Name of the cart to discount (not the current cart).

Description

If there are discount rules, this tag applies the discount to the shopping cart that is passed into the argument.

If the promotion list does not yet exist, this tag invokes commercecontext:getpromotions to obtain one.

The current cart is not discounted.

Use this tag to display a discounted price on a page. For example, one way to show that an item is currently reduced in price (that is, on sale) is to create a temporary cart, put that item in that cart, use this tag to apply a special discount to the temporary cart, and then display the resulting price on the page next to text that announces the discount.

  Home > Contents > Index >

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