Installation #
To install Currency Price, follow these steps:
- Download & unzip the file and place the
currencypricedirectory into yourcraft/pluginsdirectory - -OR- do a
git clone https://github.com/sjelfull/Craft-CurrencyPrice.gitdirectly into yourcraft/pluginsfolder. You can then update it withgit pull - Install plugin in the Craft Control Panel under Settings > Plugins
- The plugin folder should be named
currencypricefor 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.
Configuring Currency Price #
Select the currencies you want to enable in the fieldtype settings.
Using Currency Price #
You can get a currency in your template like so:
{{ fieldHandle.getPrice('USD') }}
If the currency doesn't exist, null will be returned.
Currency Price Roadmap #
- Add Matrix support
- Add default toggle to currency list
- Improve template methods
- Add filter to convert a price into another currency on the fly
Releases
- Added: Initial release
Currently available for Craft consulting and custom plugin development
Contact me