Skip to main content
Skip table of contents

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.

  1. Check (for example on Wikipedia) the currency code and English name. Check as well if there is a currency symbol (for example: “€” for €). 

  2. Open hbook/utils/currencies.php. The currencies are listed by alphabetical order of the currency code. 

  3. At the beginning of the file, there is :

CODE
'XXX' => array(
'name' => ' XXX (XXX name)',
'symbol'=> 'HTML symbol'
),
  1. Replace with your currency code, name and symbol, for example:

CODE
'DZD' => array(
'name' => 'DZD (Algerian dinar)',
'symbol' => 'DA'
),
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.