Settings / General

The general settings page consists of a panel with two tabs where you can manage the application currencies and licence.

../_images/general-settings.png

Currencies

On the currencies tab you can see a list of available currencies in your app and manage them. Click on the CREATE CURRENCY button from the bottom right side of the panel and a modal window will pop-up where you can add a new currency by filling some details.

../_images/settings-general-createcurrency.png

You have to set a default currency. Make sure you also have the currencies you add here available in your merchant account ( the paypal/stripe/etc account where you’ll receive the payments )

All currencies are reported to the default one, thus the cost of one unit of default currency is given in units of regular currency ( indirect quotation ). Use the UPDATE EXCHANGE RATES button from the bottom right corner of the card so the regular currencies will update and show prices that are equivalent to one unit of default currency.

Exchange rates updating settings

You can configure which connector you want to use for updating exchange rates and also choose whether or not you want fleio to automatically update exchange rates everyday. Open your settings.py file (read more about it) and edit or add the following variables:
  • DEFAULT_EXCHANGE_RATE_CONNECTOR: The connector you want to use. Available connectors to use for now are European Central Bank connector, Romanian National Bank connector (meanwhile others might have been added). If you don’t set any value here, the default currency related connector will be used, if none was found, the ECBconnector will be used. Use their names as strings, like in the below code-block example.
  • AUTO_UPDATE_EXCHANGE_RATES: (defaults to False). Set this to True in order to automatically update exchange rates everyday.
"""
Available exchange rate connectors:
ECBConnector (European Central Bank connector, relative to EUR currency),
BNRConnector (Romanian National Bank connector, relative to RON currency)
e.g.: DEFAULT_EXCHANGE_RATE_CONNECTOR = 'ECBConnector'
"""
DEFAULT_EXCHANGE_RATE_CONNECTOR = None
AUTO_UPDATE_EXCHANGE_RATES = False

Second factor authentication

From this tab you can manage some settings regarding second factor authentication.

../_images/sfa-tab.png

The first two checkboxes at the top control whether users are required to setup second factor authentication on their account or not. When these settings are active, and a user doesn’t have second factor authentication configured, he won’t be able to use any of the fleio features until he configures a method.

The table below has some options to make second factor authentication plugins visible to either staff users or end-users.

License

Here you can set a new licence, refresh the current one or see details about it. You can obtain a license from Fleio.

../_images/settings-license.png

Frontend customization

Here you can customize Fleio frontend. This page offers you the possibility to inject custom html into index.html for both staff and end user index.html files.

There are 4 injection points: the beginning of <head> tag, the end of the <head> tag, the beginning of the <body> tag and the end of the <body> tag.

After you added the code you want to inject you need to save it by clicking the Save button then you should click the Update frontend button to publish the changes.

If you want to disable injection at a specific injection point you just need to uncheck the checkbox related to that injection point - this allows you to disable injection at that specific point without deleting code from the database.

How to set a custom favicon

By default web browsers request /favicon.ico when loading a web page and if the file exists on the server, the browser will display it in front of your web address. Fleio comes with a /favicon.ico file and if you change that file it will get overwritten on Fleio upgrade, the same way it happens with any file that is installed by Fleio packages.

A future proof method, that will be kept on Fleio upgrades, is to set your own favicon HTML tag in Frontend customization option under General Settings.

Open your staff panel and go to Settings > General and click on Frontend customization tab. Make sure option Insert code at the end of the <head> tag is checked and fill in your favicon tag in the textarea under it:

<link rel="shortcut icon" href="https:// .... /youricon.ico">

Note that you can set one favicon for end user panel (End-user index.html customization section) and another one in the staff panel (Staff index.html customization section).

Click Save and then Update frontend button to apply your changes. Clear your browser’s cache and refresh the page or open a new Chrome incognito mode window to make sure no local cache is used. You should see the new favicon.