Perlshop 4 Currency Converter Plugin
Version 1.0
This plugin requires Perlshop 4.5.01 or later.
This plugin converts currency from one form to another (i.e. USD to EUR, etc).
NOTE: Your web server must have the Finance::Currency::Convert::Yahoo Perl library module installed in order to use this Perlshop plugin.
Installation Procedure:
Example plugin registration table before adding the Currency Converter plugin:
# Plugin modules. See the external documentation for details.
%plugins =
(
# Calendar example plugin
'calendar' =>
{
'program' => 'ps_plugin_gencal.pl'
}
);
Example plugin registration table after adding the Currency Converter plugin:
# Plugin modules. See the external documentation for details.
%plugins =
(
# Currency Converter plugin
'currency_converter' =>
{
'module' => 'PS_CurrencyConverter.pm',
'event' => 'currency_converter',
'display' => 'no'
},
# Calendar example plugin
'calendar' =>
{
'program' => 'ps_plugin_gencal.pl'
}
);
This plugin is called directly from within your catalog web pages. The plugin may be called as many times as needed within a given catalog web page.
The plugin is used as follows:
<!--#plugin currency_converter amount from to format-->
Where:
| Key Value | Example Plugin Return Value |
|---|---|
| abbr | 12.34 GBP |
| number | 12.34 |
| name | 12.34 British Pounds |
| text | 9.00 US Dollars is 12.34 British Pounds |
Examples:
<!--#plugin currency_converter 1 USD CAD-->
<!--#plugin currency_converter 3.25 USD EUR-->
<!--#plugin currency_converter 3.25 CAD MXN-->