SNetworks

How to override default set of currency?

Saturday, 12 May 2018 | Views: 1979

WARNING: This instruction is targeted for intermediate to advanced users only. Please make sure that you keep a backup of the files before making the amendments Overriding any particular settings from the config file will override any options selected from admin panel. Thus changing from admin panel of the particular settings will not take in effect anymore. For example, if you override the currency code and symbol from config file, then changing the currency thereafter from admin panel > site control will not work anymore until you restore to default file.

By default, we've limited numbers of currency assigned into the script which includes but not limited to USD ($), GBP (£), and Euro (€). If you need to override the settings to your own custom currency then please follow the instructions below:

1. Open the file "config.inc.php" file which is located within the root directory of the script.

2. Find the following variable:

$currency = $site_data[9];

3. Change the value of the variable $currency to your currency symbol, in this example currency is being changed to Japanese Yen. It is the dispaly currency variable of your classifieds stie.

$currency = "¥";

Note: Depending on the type of server you're on, sometimes the currency symbol can't be saved or displayed properly. Therefore, you might have to use currency code if the direct symbol doesn't work for you. In the case of Japanese Yen, the currency code would be & # 1 6 5 ; (without the spaces). You can find your currency symbol code by making a simple google search or we've found a good reliable website that you can use by clicking here.

4. Find the following variable and make the exact same changes as above.:

$paypal_currency_symbol = $site_data[9];

Note: If you have any other additional payment gateways installed by our professionals then similar PHP variable with your gateway name should be listed around these lines.

5. Find the following variable for Paypal (default) payment method:

$paypal_currency = "$site_data[12]";

6. Change similarly to the following example of codes. You're changing it to ISO 4217 Currency Code (three characters code of the currency). For Japense Yen it shal lbe as follows:

$paypal_currency = "JPY";

You can find your currency code by going to https://developer.paypal.com/docs/api/reference/currency-codes/. Make sure you're changing to a currency code that is already accepted by Paypal or your chosen Payment Gateway for it to function/work properly.

Once changes has been made then save the file back to the server and changes will take effect immedaitely.

If you're struggling to chagne or if you're unsure of what you're doing then we strongly advise you to contact SNetworks Support after logging into yoru account for further assistance.

Back to list

Follow us on Facebook Follow us on Twitter

4800 Great America Pkwy Suite 219, CA 95054
Phone: (209) 877-7972 | Fax: (814) 690-7044

Copyright 2007-2024 SNetworks Classifieds. All rights reserved.