Home > Contents > Index >
cart:getitemtotal
Obtains the item total of the cart.
Syntax
<cart:getitemtotal name="cartname
" varname="varname
" [storeid="storeid
"]/>Parameters
name
(required)- Input parameter. Name of the shopping cart.
varname
(required)- Input and output parameter. As input, name of a variable that holds the total, which is assigned as a double value on output.
storeid
(optional)- Input parameter. ID of the store where the total applies, if the cart represents more than one store. If
storeid
is not included, returns the item total for all stores.
Description
When called,
cart:getitemtotal
returns the total of items only; the total does not include discounts, tax, or shipping.Example
<!-- Get the cart item total -->
<cart:getitemtotal name="cart" varname="carttotal"/><!-- Convert the total to currency. -->
<currency:getcurrency name="curval" value="carttotal"
varname="curout"/>
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.