Within any page, the [item-list cart*]
element shows a list of all the items ordered by the customer so far. It
works by repeating the source between [item-list]
and [/item-list]
once for each item ordered.
NOTE: The special tags that reference item within the list are not normal MiniVend tags, do not take named attributes, and cannot be contained in an HTML tag (other than to substitute for one of its values or provide a conditional container). They are interpreted only inside their corresponding list container. Normal MiniVend tags can be interspersed, though they will be interpreted after all of the list-specific tags.
Between the item_list markers the following elements will return information for the current item:
column
in table table is non-blank, the following text up to the [/if-item-data]
tag is substituted. This can be used to substitute
IMG or other tags only if the corresponding source
item is present. Also accepts a [else]else text[/else]
pair for the opposite condition.
NOTE: This tag does not nest with other [if-item-data ...]
tags.
[if-item-data]
.
[if-item-data table column]
element.
[/if-item-field]
tag is substituted. If you have more than one products database table (see ProductFiles), it will check them in order until a matching key is found. This can be used to substitute
IMG or other tags only if the corresponding source item is present. Also accepts a
[else]else text[/else]
pair for the opposite condition.
NOTE: This tag does not nest with other [if-item-field ...]
tags.
[if-item-field]
.
[if-item-field fieldname]
element.
[else]NOT DIVISIBLE TEXT[/else]
is present, then the
NOT
DIVISIBLE
TEXT will be displayed.
For example:
[item-alternate 2]EVEN[else]ODD[/else][/item-alternate] [item-alternate 3]BY 3[else]NOT by 3[/else][/item-alternate]
[item-field title]
is equivalent to
[item-data products title]
.
Evaluates to the field name fieldname in the products database, for the current item. If the item is not found in the first of the ProductFiles, all will be searched in sequence.
[item-last][calc] return -1 if '[item-field weight]' eq ''; return 1 if '[item-field weight]' < 1; return 0; [/calc][/item-last]
If this is contained in your [item-list]
(or [search-list]
or flypage) and the weight field is empty, then a numerical -1
will be output from the [calc][/calc]
tags; the list will end and the item will not be shown. If the product's weight field is less than 1, a numerical 1 is
output. The item will be shown, but will be the last item shown. (If it is
an [item-list]
, any price for the item will still be added to the subtotal.)
NOTE: no
HTML style.
attribute
for the current item.
[item-next][calc][item-field weight] < 1[/calc][/item-next]
If this is contained in your [item-list]
(or [search-list]
or flypage) and the product's weight field is less than 1, then a numerical 1
will be output from the [calc][/calc] operation. The item will not be
shown. (If it is an [item-list]
, any price for the item will still be added to the subtotal.)
n
(from the products file) of the current item, with currency formatting. If
the optional ``noformat'' is set, then currency formatting will not be
applied.
n
(from the products file) of the current item, with currency formatting. If
the optional ``noformat'' is set, then currency formatting will not be
applied. Returns regular price if not discounted.