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
Retrieves a locally available copy of the current cart.
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 JSP Tag Reference
Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.