Post by lioncity » Sun Sep 20, 2009 5:09 pm

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

New member

Posts

Joined
Sun Sep 06, 2009 8:57 pm

Post by jamieleshaw » Sun Sep 20, 2009 5:31 pm

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

Active Member

Posts

Joined
Sun Jul 26, 2009 11:19 am

Post by lioncity » Sun Sep 20, 2009 6:09 pm

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

New member

Posts

Joined
Sun Sep 06, 2009 8:57 pm

Post by jamieleshaw » Sun Sep 20, 2009 6:15 pm

Can i have site link?

Active Member

Posts

Joined
Sun Jul 26, 2009 11:19 am

Post by lioncity » Sun Sep 20, 2009 6:25 pm

Thanks a lot. I am now trying that in localhost, but it seems that we must use USD as default currency, which is limited by the system.

Any hint? I am confused about this.

New member

Posts

Joined
Sun Sep 06, 2009 8:57 pm

Post by jamieleshaw » Sun Sep 20, 2009 6:28 pm

No, USD does not need to be default, I can assist you further if you pm me your store admin details.

Active Member

Posts

Joined
Sun Jul 26, 2009 11:19 am

Post by lioncity » Sun Sep 20, 2009 11:22 pm

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

New member

Posts

Joined
Sun Sep 06, 2009 8:57 pm

Post by Daniel » Mon Sep 21, 2009 3:41 am

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.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by lioncity » Mon Sep 21, 2009 10:40 am

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

New member

Posts

Joined
Sun Sep 06, 2009 8:57 pm

Post by Qphoria » Mon Sep 21, 2009 10:51 am

Why not take a look through the admin.. I'm sure you'll find the setting within 2 min

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by lioncity » Mon Sep 21, 2009 11:03 am

Hi Qphoria, thank you.

I tried to Edit the currency, but could not find the setting for (Default) currency. Does it mean if one currency's value is set as "1", then it is deemed as default?

New member

Posts

Joined
Sun Sep 06, 2009 8:57 pm

Post by Qphoria » Mon Sep 21, 2009 11:16 am

Admin->Settings->Configuration->Local!

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by lioncity » Mon Sep 21, 2009 11:36 am

Thanks a lot! actually I've set that, but didn't realize that is the key ;-)

New member

Posts

Joined
Sun Sep 06, 2009 8:57 pm

Post by lojayatta » Thu Sep 01, 2011 6:02 am

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:
  • 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
Now go to System > Settings and click Edit in front of the Entry that is there. Note, that if there is none you must create one.
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! :banana: :banana:

-Sidnei
Image
http://lojayatta.com.br/


User avatar
Newbie

Posts

Joined
Thu Sep 01, 2011 4:19 am
Location - Vitória, ES Brasil

Post by Microbe » Tue Nov 01, 2011 9:38 am

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.

Newbie

Posts

Joined
Tue Nov 01, 2011 9:36 am

Post by johnwooding » Sun Nov 13, 2011 7:33 pm

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.

Newbie

Posts

Joined
Sun Nov 13, 2011 7:28 pm

Post by johnwooding » Sun Nov 13, 2011 8:01 pm

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
}

Newbie

Posts

Joined
Sun Nov 13, 2011 7:28 pm

Post by PlusCybernet » Sun Dec 25, 2011 12:10 pm

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.

User avatar
Active Member

Posts

Joined
Sun Dec 25, 2011 12:01 pm

Post by superguru » Mon Feb 20, 2012 2:23 am

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!

Newbie

Posts

Joined
Mon Feb 20, 2012 2:17 am

Post by picobo » Sun Mar 04, 2012 5:18 am

I have the exact same questions as "superguru" above me... anyone knows what we can do??

Newbie

Posts

Joined
Sat Feb 11, 2012 6:59 am
Who is online

Users browsing this forum: No registered users and 10 guests