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 on output.
Example
<!-- Is there an item to delete? --> <IF COND="IsVariable.delitem=true"><THEN> <!-- If yes, delete the item from the shopping cart --> <CART.DELETEITEM NAME="thiscart" ID="Variables.delitem"/> <!-- Save the cart to the commerce context --> <COMMERCECONTEXT.SETCURRENTCART CART="thiscart"/> </THEN></IF>See Also
CART.GETPARAMETERS
Home > Contents > Index > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.