Home > Contents > Index >
Template Tag 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.

You use this tag to display a discounted price on a page. For example, one way to show that an item is 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 >

FatWire XML Tag Reference
Copyright 2005 by FatWire Software
All rights reserved.