Hi all,
Please excuse me if my question is too simple.
May I know how to change Default Currency from USD to other currency? I've tried, but it seems there is no button to let me to define it as default for other added currency.
Please kindly advise, thank you.
Best regards,
lioncity
Please excuse me if my question is too simple.
May I know how to change Default Currency from USD to other currency? I've tried, but it seems there is no button to let me to define it as default for other added currency.
Please kindly advise, thank you.
Best regards,
lioncity
Goto Admin>Configuration>Settings>Local> Change Currency from USD to what ever currency you want.
For your convenience I will show you howto create another currency in case you haven't already done so, as follows
Admin> Configuration > Localisation > Currency Click insert fill out currency info then save
For your convenience I will show you howto create another currency in case you haven't already done so, as follows
Admin> Configuration > Localisation > Currency Click insert fill out currency info then save
Hello,
Thanks for your kind advice.
However, once I changed the current DEFAULT USD to any other currency, which means to remove USD from default currency, my system will pop up error message:
Notice: Undefined index: USD in /xxxxxxxxx/system/helper/currency.php on line 53
Notice: Undefined index: USD in /xxxxxxxxx/system/helper/currency.php on line 54
.
.
Notice: Undefined index: USD in /xxxxxxxxx/system/helper/currency.php on line 63
If I revert it back, every thing is ok. Please kindly advise how to make it work properly, thank you.
Best regards,
lioncity
Thanks for your kind advice.
However, once I changed the current DEFAULT USD to any other currency, which means to remove USD from default currency, my system will pop up error message:
Notice: Undefined index: USD in /xxxxxxxxx/system/helper/currency.php on line 53
Notice: Undefined index: USD in /xxxxxxxxx/system/helper/currency.php on line 54
.
.
Notice: Undefined index: USD in /xxxxxxxxx/system/helper/currency.php on line 63
If I revert it back, every thing is ok. Please kindly advise how to make it work properly, thank you.
Best regards,
lioncity
No, USD does not need to be default, I can assist you further if you pm me your store admin details.
Hello jamieleshaw,
Sorry for my late reply, just now I was off line.
I just tried to remove or disable all other currencies, including USD, I also disable it. Now, only Singapore Dollar is kept, it is ok now.
However, I am still confused why there is a "(Default)" besides USD, but I can not set this "(Default)" to any other currency. Please kindly advise if you have any idea, thank you very much.
Best regards,
lioncity
Sorry for my late reply, just now I was off line.
I just tried to remove or disable all other currencies, including USD, I also disable it. Now, only Singapore Dollar is kept, it is ok now.
However, I am still confused why there is a "(Default)" besides USD, but I can not set this "(Default)" to any other currency. Please kindly advise if you have any idea, thank you very much.
Best regards,
lioncity
Don;t forget that even though you have changed the default currency in the admin that you have a cookie stored in your browser that saves the last currency you used!
set the default currency then delete your cookies.
set the default currency then delete your cookies.
OpenCart®
Project Owner & Developer.
Hi Daniel,
Thank you very much for your attention and reply in this post. I cleaned the cookie, but am still not sure where to set the (Default) currency? is there any button or check-box to set that? thanks a lot.
Best regards,
lioncity
Thank you very much for your attention and reply in this post. I cleaned the cookie, but am still not sure where to set the (Default) currency? is there any button or check-box to set that? thanks a lot.
Best regards,
lioncity
How to change Default Currency from USD to other currency on OpenCart version 1.5.1.1:
First create the currency you want to be the default:
When creating or editing click the tab Local and set the Currency to the default you would like.
IMPORTANT - Clear your browser cache and you are all set!

First create the currency you want to be the default:
- Login to the Admin and go to System > Localisation > Currencies and click Insert button on the top right hand corner
- Now enter the info to create your new currency; you will need to enter the proper code for your currency, please refer to this http://www.xe.com/iso4217.php#A
- Enter 1.00000 for the value
- And set the status to Enabled
- Click Save
When creating or editing click the tab Local and set the Currency to the default you would like.
IMPORTANT - Clear your browser cache and you are all set!


-Sidnei
http://lojayatta.com.br/
Some of this was helpful but it didn't give a clear definitive answer.
First you do need to create the currency. To set that currency as default go to:
system > settings and choose your store to edit
then click the local tab and you set the default currency there.
First you do need to create the currency. To set that currency as default go to:
system > settings and choose your store to edit
then click the local tab and you set the default currency there.
in the {prefix}_setting table find the the row with a group of 'config' and a key of 'config_currency'. Change the value from 'USD' to your desired default currency code.
In opencart_v1.5.1.3.1 I could not change the default currency according to any recommended method.
In opencart_v1.5.1.3.1 I could not change the default currency according to any recommended method.
Alternatively in admin/model/localisation/currency.php patch the function editCurrency() so that the default currency is set by changing the rate of the currency being edited to be 1
[correction to previous withdrawn post which had one error]
public function editCurrency($currency_id, $data) {
$this->db->query("UPDATE " . DB_PREFIX . "currency SET title = '" . $this->db->escape($data['title']) . "', code = '" . $this->db->escape($data['code']) . "', symbol_left = '" . $this->db->escape($data['symbol_left']) . "', symbol_right = '" . $this->db->escape($data['symbol_right']) . "', decimal_place = '" . $this->db->escape($data['decimal_place']) . "', value = '" . $this->db->escape($data['value']) . "', status = '" . (int)$data['status'] . "', date_modified = NOW() WHERE currency_id = '" . (int)$currency_id . "'");
$this->cache->delete('currency');
// start of new code for default currency setting
if (floatval($this->db->escape($data['value'])) == 1.0) {
$c_code = $this->db->escape($data['code']);
$this->session->data['currency'] = $c_code;
$this->config->set('config_currency', $c_code);
$this->db->query("UPDATE ".DB_PREFIX."setting SET `value` = '".$c_code."' WHERE `group` = 'config' AND `key` = 'config_currency' ");
}
// end of new code for default currency setting
}
[correction to previous withdrawn post which had one error]
public function editCurrency($currency_id, $data) {
$this->db->query("UPDATE " . DB_PREFIX . "currency SET title = '" . $this->db->escape($data['title']) . "', code = '" . $this->db->escape($data['code']) . "', symbol_left = '" . $this->db->escape($data['symbol_left']) . "', symbol_right = '" . $this->db->escape($data['symbol_right']) . "', decimal_place = '" . $this->db->escape($data['decimal_place']) . "', value = '" . $this->db->escape($data['value']) . "', status = '" . (int)$data['status'] . "', date_modified = NOW() WHERE currency_id = '" . (int)$currency_id . "'");
$this->cache->delete('currency');
// start of new code for default currency setting
if (floatval($this->db->escape($data['value'])) == 1.0) {
$c_code = $this->db->escape($data['code']);
$this->session->data['currency'] = $c_code;
$this->config->set('config_currency', $c_code);
$this->db->query("UPDATE ".DB_PREFIX."setting SET `value` = '".$c_code."' WHERE `group` = 'config' AND `key` = 'config_currency' ");
}
// end of new code for default currency setting
}
It's very simple method to change default currency:
1. Create new currency [System > Locationlisation > Currencies > Insert] and make it's value as "1.00000000".
2. Go to Default Store under [System > Settings] > [Edit] > [Local] to change "Currency" to new currency you've created.
3. Now, go back to [System > Locationlisation > Currencies > Insert] and delete all other currencies you wish to.
1. Create new currency [System > Locationlisation > Currencies > Insert] and make it's value as "1.00000000".
2. Go to Default Store under [System > Settings] > [Edit] > [Local] to change "Currency" to new currency you've created.
3. Now, go back to [System > Locationlisation > Currencies > Insert] and delete all other currencies you wish to.
Hi,
I have been able to set-up the currencies without problem, but my issue is that I would like to have different currencies for the admin and the default store currency. I dont know what the best approach to accomplish this is. The reason I want to do that is that I want my store to have Mexican Pesos as default, but I want to have my inventory in USD so that the prices update according to the exchange rate.
I f I leave MXN as my store default and I change the exchange rates, it works as I would like for a while, until the next day it auto updates the exchange rate and it starts displaying erronous prices. I know I could disable auto update for the exchange rate, but then I would have to manually change the exchange rate every day.
Is there a way to have a default currency for the admin that is different than the store?
Thanks!
I have been able to set-up the currencies without problem, but my issue is that I would like to have different currencies for the admin and the default store currency. I dont know what the best approach to accomplish this is. The reason I want to do that is that I want my store to have Mexican Pesos as default, but I want to have my inventory in USD so that the prices update according to the exchange rate.
I f I leave MXN as my store default and I change the exchange rates, it works as I would like for a while, until the next day it auto updates the exchange rate and it starts displaying erronous prices. I know I could disable auto update for the exchange rate, but then I would have to manually change the exchange rate every day.
Is there a way to have a default currency for the admin that is different than the store?
Thanks!
Who is online
Users browsing this forum: No registered users and 10 guests