4.81. total-cost
4.81.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->total_cost( { name => VALUE, noformat => VALUE, } ) OR $Tag->total_cost($name, $noformat);
Attribute aliases
cart ==> name [total-cost name noformat]
Parameters | Description | Default |
cart | Alias for name | DEFAULT_VALUE |
name | DEFAULT_VALUE | |
noformat | DEFAULT_VALUE |
Attributes | Default |
interpolate (reparse) | No |
Other_Characteristics | |
Invalidates cache | YES |
Container tag | No |
Has Subtags | No |
Nests | Yes |
Tag expansion example:
[total-cost name noformat] --- TODO: (tag result)
ASP-like Perl call:
$Tag->total_cost( { name => VALUE_name noformat => VALUE_noformat }, $body );
or similarly with positional parameters,
$Tag->total_cost(name,noformat, $attribute_hash_reference, $body);
4.81.2. Description
Expands into the total cost of all the items in the current shopping cart, including sales tax (if any).