How to add a new currency to HBook supported currencies?
🤔 Problem
In HBook > Payment > Price settings, my currency is not listed.
🌱 Solution
If your currency is not listed yet, please contact us so we can add it in the following update. Else, your changes will be overwritten.
You can already add the currency for your project, following these steps.
Check (for example on Wikipedia) the currency code and English name. Check as well if there is a currency symbol (for example: “€” for €).
Open hbook/utils/currencies.php. The currencies are listed by alphabetical order of the currency code.
At the beginning of the file, there is :
'XXX' => array(
'name' => ' XXX (XXX name)',
'symbol'=> 'HTML symbol'
),
Replace with your currency code, name and symbol, for example:
'DZD' => array(
'name' => 'DZD (Algerian dinar)',
'symbol' => 'DA'
),