4.73. subtotal
4.73.1. Summary
Parameters: name noformat
Positional parameters in same order.
Pass attribute hash as last to subroutine: no
Must pass named parameter interpolate=1 to cause interpolation.
Invalidates cache: YES
Called Routine:
ASP-like Perl call:
$Tag->subtotal(
{
name => VALUE,
noformat => VALUE,
}
)
OR
$Tag->subtotal($name, $noformat);
Attribute aliases
cart ==> name
[subtotal name noformat]
| Parameters | Description | Default |
| cart | Alias for name | DEFAULT_VALUE |
| name | DEFAULT_VALUE | |
| noformat | DEFAULT_VALUE |
| Attributes | Default |
| interpolate (reparse) | No |
| Other_Charactreristics | |
| Invalidates cache | YES |
| Container tag | No |
| Has Subtags | No |
| Nests | Yes |
Tag expansion example:
[subtotal name noformat] --- TAGRESULT
ASP-like Perl call:
$Tag->subtotal( { name => VALUE_name
noformat => VALUE_noformat
}, $body );
or similarly with positional parameters,
$Tag->subtotal(name,noformat, $attribute_hash_reference, $body);
4.73.2. Description
Positional: [subtotal cart* noformat*]
mandatory: NONE
optional: cart noformat
Expands into the subtotal cost, exclusive of sales tax, of all the items ordered so far for the optional cart. If the noformat tag is present and non-zero, the raw number with no currency formatting will be given.