2.47. nitems
Returns the total number of items ordered. Uses the current cart if none specified.
2.47.1. Summary
Parameters: name
- name
- Cart name
- Default: current cart
- qualifier
- An item attribute that must be true in order to count the item.
- Default: None
- compare
- Regular expression the specified qualifier attribute's value must match to be counted. This replaces the truth value comparison.
- Default: None (uses truth value of the specified qualifier attribute)
Must pass named parameter interpolate=1 to cause interpolation.
Invalidates cache: YES
Called Routine:
ASP-like Perl call:
$Tag->nitems( { name => VALUE, } ) OR $Tag->nitems($name, $ATTRHASH);
2.47.2. Description
Expands into the total number of items ordered so far. Takes an optional cart name as a parameter.