![]() |
| > Home > Documentation > Latest documentation > Interchange tags > item-list |
|
item-listGet a list of all of the items that are in the visitor's shopping cart. Summary
The following parameters are also available to this tag:
See the search parameters page for more parameters. Note that you must use the two-character short code, rather than the full name, with parameters listed on that page. Here is a quick list of some of the search parameters that are useful in this context:
ExampleTag expansion example
DescriptionThe [item-list] tag loops over each of the items in the visitor's shopping cart. This container tag's body text is run for each item in the cart, thereby building up a buffer of text, HTML or whatever is required.. This tag is usually used to format basket display pages and mini-basket components. You may use any of the loop sub-tags in this container tag's body text. The default PREFIX for this container tag is "item". The order in which the cart items are displayed can be influenced by either the reverse or the sort parameter, or by using the [sort] pseudo-tag. ParameterscartA website may define more than one cart. Each cart is referenced by name. The default cart's name is "main". Use this parameter if you want to use a different different cart. reverseIf set true, the cart items will be iterated in reverse order. This may be useful if you want to show the latest additions at the top of the display. sortThe cart items can be sorted into a specific order using this parameter. This parameter expects sort options to be specified in a specific manner, as explained here. formYou can use this to pass one or more form variables in the pagination links of a [more-list]. For example, use form="foo=bar" to include "foo=bar", as a URI argument in each of the pagination links.
labelIf you are setting up multiple simultaneously-active search objects within a page, then this allows you to distinguish between them. The default label is "current". Most people will not need this. more_templateOverride the default display template value, used by the [more-list] sub-tag. prefixSetting "prefix=foo" overrides the "PREFIX" used by the various [PREFIX-*] sub-tags, and also by the [PREFIX-quote] container. The default "prefix" is "item". safe_dataSetting "safe_data=1" allows the [sql-data] and [sql-param] sub-tag (etc.) to return values containing the "[" character.
See also
|
| Home | Legal nonsense | Privacy policy | Contact us |