Home > Contents > 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 Sites Developer's Guide.
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>
Home > Contents > Index > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.