Esty Documentation
  • Welcome
  • Overview
  • Requirements
  • HTML Structure
  • CSS Structure
  • JavaScript Structure
  • DataBase Structure
  • Installation
    • Preparation
    • Demo Import
    • Change the config file
    • First usage
    • Changing the currency
  • Support
  • Source & Credits
Powered by GitBook
On this page
  1. Installation

Changing the currency

PreviousFirst usageNextSupport

Last updated 7 months ago

In order to use your desired currency open the scripts.js for edit from js folder (or scripts-dark.js if you have chosen the dark version) and find the following section in it:

Copy

// =====================================================
// FORMATTING CURRENCY
// =====================================================
var prefixSetting = '$ ';
var suffixSetting = '';
var thousandsSeparatorSetting = ',';
var centsSeparatorSetting = '.';
var centsLimitSetting = 2;

how the different countries are using currency marks and separators.

Under the page above if you scroll a bit down you will find the "Popular Country Currencies" section.

After setting these data in scripts.js copy it to your server (overwrite the default one) and reload your browser's page where the calculator was opened so currency data will be changed according to your changes.

Here you can find a hint