Home > Contents > Index >
COMMERCECONTEXT.GETCURRENTCART
Retrieves and names a copy of the current cart from the visitor context.
Syntax
<COMMERCECONTEXT.GETCURRENTCART VARNAME="cartname
"/>Parameters
VARNAME
(required)- Input or output parameter. Name of the cart object to retrieve or create.
Description
If there is already a copy of the current cart with this name, it is retrieved. If a copy of the current cart does not yet exist, the current cart object is copied and named with the variable name.
You can modify settings, data, and functions in the copy and then check it back into the visitor context with
COMMERCECONTEXT.SETCURRENTCART
.Example
<!-- Get the current cart. -->
<COMMERCECONTEXT.GETCURRENTCART VARNAME="thiscart"/><!-- Check the cart to enumerate payment methods. -->
<CART.CHECK NAME="thiscart" VARNAME="cartstatus"/> <!-- Now get the legal values for the payment types. --> <CART.GETLEGALVALUES NAME="thiscart" FIELD="paymentInfo-brandID"
LISTVARNAME="paylist"/>
Home > Contents > Index > Oracle XML Tag Reference
Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.