Help Index >> Cart 32 Help >> Item List Method back to Add Item Methodforward to Empty Cart Methodup a level to Cart 32 Helptable of contents

Cart32 Help
Item List Method

This will list all of the items in a user's shopping cart. It can be invoked in HTML in one of two ways.

1. GET Method
Using this method the user can click on a link to get a list of items in his/her shopping cart. Here is the syntax. <a href="/cgi-bin/cart32.exe/clientcode-itemlist>View Shopping Cart Text</a>

2. POST Method
Using this method the user can click on a button to get a list of items in his/her shopping cart. Here is the syntax.

<form method=get action="/cgi-bin/cart32.exe/clientcode-itemlist">
<input type=submit value="View Shopping Cart Text">
</form>

You can also pass the referer variable to the ItemList method so you can specify the “Click here to continue link". Here is the syntax for the referer variable.

POST Method
<input type=hidden name="Referer" value="/mypage.html">
or
<input type=hidden name="Referer" value="http://www.mysite.com/mypage.html">

GET Method: (Make sure there are no spaces in the link text)
<a href="/cgi-bin/cart32.exe/clientcode-itemlist?Referer=/mypage.html">View Shopping Cart Text</a>