handling
Calculates and returns the handling cost.
Summary
| Parameter
|
Description
|
Default
|
| mode |
|
None |
| modes |
Alias for mode. |
None |
| name |
Alias for mode. |
None |
| cart |
name of the cart to operate on. |
main |
| carts |
Alias for cart. |
main |
| convert |
Convert the amount according to the PriceDivide value for the current locale. |
No
|
| display |
Display the currency identifier as a symbol, as plain text or not at all. |
symbol
|
| table |
|
None |
| tables |
Alias for table. |
None |
| locale |
Override the current locale for the currency format. |
None |
| noformat |
Suppress currency formatting from the amount. |
No
|
Examples
Tag expansion example
Perl example
$Tag->handling({
mode => $mode,
});
|
or similarly with positional parameters:
|
$Tag->handling($mode, $attribute_hash_reference);
|
Description
Calculates and returns the handling cost.
The output of the this tag can be set with the use of the
[assign] tag.
|
Warning
This tag will be inactive, despite any assignment, unless the
[value mv_handling] variable is true
(i.e. a non-zero, non-blank value).
|
Parameters
mode
cart
The name of the cart you would like to calculate against.
convert
If true then convert the amount according to the
PriceDivide value for the current locale.
See the [currency] tag for a
usage example.
display
The currency identifier will usually be displayed as a symbol
(i.e. "£" or "$" etc.).
If this parameter is set to "text" then the currency
identifier will be displayed as plain text
(i.e. "GBP" or "USD" etc.), depending upon the locale settings.
If this parameter is set to "none" then the currency
identifier will not be displayed at all.
See the [currency] tag.
table
locale
This parameter allows you to override the current locale that would
be used to format the result and provide the exchange rate.
See the [currency] tag.
|
Note
Setting this parameter causes the convert parameter to
also be set, unless you specify "convert=0".
|
noformat
If true then suppress currency formatting from the value
returned from this tag.
See the [currency] tag.