Fieldtype that allow you to input a price in multiple currencies.
To install Currency Price, follow these steps:
- Download & unzip the file and place the
currencyprice
directory into yourcraft/plugins
directory - -OR- do a
git clone https://github.com/sjelfull/Craft-CurrencyPrice.git
directly into yourcraft/plugins
folder. You can then update it withgit pull
- Install plugin in the Craft Control Panel under Settings > Plugins
- The plugin folder should be named
currencyprice
for Craft to see it. GitHub recently started appending-master
(the branch name) to the name of the folder for zip file downloads.
Currency Price works on Craft 2.4.x and Craft 2.5.x.
Select the currencies you want to enable in the fieldtype settings.
You can get a currency in your template like so:
{{ fieldHandle.getPrice('USD') }}
If the currency doesn't exist, null
will be returned.
- Add Matrix support
- Add default toggle to currency list
- Improve template methods
- Add filter to convert a price into another currency on the fly
- Initial release
Brought to you by Fred Carlsen