Creating a new currency
A currency must exist in the currency list before products can have prices in it.
In the administration
- Open Store > Currencies (/shop/currencylist; policy shop/setup) and click New currency.
- Fill in the form:
- Currency code: three capital letters, the ISO 4217 code (EUR, USD, NOK). Other characters are refused, and a code can exist only once. The automatic rates are looked up by this code.
- Currency symbol: shown with prices (€, $, kr).
- Formatting locale: the locale whose number format is used for prices in this currency (decimal and thousands separators, symbol position).
- Custom rate: a rate you set yourself; leave it at 0 to use the automatic rate.
- Rate factor: a multiplier applied to the rate, 1 by default (for example 1.02 to add 2 percent).
- Click Create. The currency is active.
Store > Currencies (/shop/currencylist): the currency list, here still empty, with New currency. With currencies it also shows the auto rate, custom rate, factor and status, and the buttons Update auto rates, Update autoprices and Apply changes.
Next steps
- Press Update auto rates on the list to fetch its rate (see Currency rates).
- Press Update autoprices so that products get auto prices in the new currency.
From the console
./console exp:convertprice2multiprice creates the currency of the site locale when it is missing, as part of converting Price attributes; see Upgrading your webshop. There is no separate command to create a currency.
Contributors
- Svitlana Shatokhina
- Andrea Melo Maintainer
- Geir Arne Waaler Maintainer
- Mark Commenter
- Graham Brookins Updated Maintainer
Comments (1 historical)
Written by readers of the earlier documentation sites, kept as they were.
Currency
Mark ·
Fianlly got an example on how to create a custom currencynames.tpl.
Thanks!
_________________________
http://www.xikanglu36.com