pohnean / craft-currencyfield
Multi-lingual currency dropdown field type for Craft CMS
Installs: 2 366
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 1
Type:craft-plugin
Requires
- commerceguys/intl: ^1.0
- craftcms/cms: ^3.0.0
This package is auto-updated.
Last update: 2025-03-29 00:37:39 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"