Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index
commercecontext:setcurrentcart
Checks the working copy of the current cart back into the visitor context, updating the current cart that is stored there.
Syntax
<commercecontext:setcurrentcart cart="cartname
"/>Parameters
cart
(required)- Input parameter. Name of the working copy of the cart that updates the current cart object.
Description
For more information about working with carts, see the CS Developer's Guide.
Example
<!-- Is there an item to delete? --> <% String aid = ics.GetVar("delitem") if (aid!=null) { %> <!-- If yes, delete the item from the shopping cart --> <cart:deleteitem name="thiscart" id="delitem"/> <!-- Save the cart to the commerce context --> <commercecontext:setcurrentcart cart="thiscart"/> <% } %>
Home > Contents > Index > ![]()
FatWire JSP Tag Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.