Home > Contents > Index >
cart:deleteitem
Deletes an item from a cart.
Syntax
<cart:deleteitem name="cartname
" id="itemid
" [listvarname="listvar
"]/>Parameters
name
(required)- Input parameter. Name of the shopping cart.
id
(required)- Input parameter. Row identifier that specifies the item.
listvarname
(optional)- Input and output parameter. As input, a list variable that, if included, holds all the parameters of the item in the deleted row upon output.
Example
<% 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"/> <% } %>See Also
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.