pohnean / craft-currencyfield
Multi-lingual currency dropdown field type for Craft CMS
Package info
github.com/pohnean/craft-currencyfield
Type:craft-plugin
pkg:composer/pohnean/craft-currencyfield
1.0.3
2020-03-17 04:06 UTC
Requires
- commerceguys/intl: ^1.0
- craftcms/cms: ^3.0.0
This package is auto-updated.
Last update: 2026-03-01 00:30:46 UTC
README
Currency field plugin for Craft CMS 3.x
A multi-language Currency dropdown field type.
Usage in twig templates
# Printing the currency code
{{ item.currency }} // Outputs EUR
# Printing the currency symbol
{{ item.currency.symbol }} // Outputs €
# Printing the local currency name (site language is zh-Hans)
{{ item.currency.name }} // Outputs 欧元
Requirements
This plugin requires Craft CMS 3.0.0 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project -
Then tell Composer to load the plugin:
composer require pohnean/craft-currencyfield -
In the Control Panel, go to Settings → Plugins and click the “Install” button for Currency Field.
Brought to you by Tai Poh Nean
"Icon made by Dimitry Miroliubov from www.flaticon.com"