Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index
cart:getitems
Obtains all items in the cart.
Syntax
<cart:getitems name="cartname" [storeid="storeid"] [list="inputlist"] listvarname="varlist"/>Parameters
name(required)- Input parameter. Name of the shopping cart.
storeid(optional)- Input parameter. ID of the store where the items exist, if the cart represents more than one store. If
storeidis not included, returns all items for all stores.
list(optional)- Input parameter. Describes the minimum input parameters. By default, only the six fixed columns are returned, and any values set for items.
listvarname(required)- Input and output parameter. As input, name of the list to create on output with the following columns:
rowid,assettype,assetid,storeid,quantity,price,parametername
Description
This tag retrieves all items in the shopping cart.
Example
<!-- Build a resultset list that holds all item parameters. --> <listobject:create name="itemlist" columns="value"/> <listobject:addrow name="itemlist"> <listobject:argument name="value" value="name"/> </listobject:addrow> <listobject:addrow name="itemlist"> <listobject:argument name="value" value="uniqueid"/> </listobject:addrow> <listobject:tolist name="itemlist" value="itemlist"/> <!-- Get any existing items from the cart. --> <cart:getitems name="thiscart" list="itemlist" listvarname="cartlist"/>See Also
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.