Post by HighHo » Sat Aug 06, 2011 9:49 pm

Hello,

I know there are already many posts regarding currency issues, this is not so much an issue but wondering if possible.
I would like the admin currency to be in $, but the default fronthead for customers to be in £. If it helps all i really want is to add products in $ and the site to convert them to £. Im not to fussed if the whole admin backend is in $ or it just understands the products are being added in $ and need to be £.
(opencart 1.5.1)

Hope that is clear enough,
Thanks in advanced,
Alex.
Last edited by HighHo on Sat Aug 06, 2011 10:49 pm, edited 1 time in total.

Newbie

Posts

Joined
Sat Aug 06, 2011 9:39 pm

Post by uksitebuilder » Sat Aug 06, 2011 10:33 pm

OK here goes, a bit of a hack but it works.

In your admin, system -> localisation -> currencies

You have your default currency set as USD and also set it to Disabled

You have an additional currency set as GBP leave it set as enabled

This takes care of the currency switcher

Now to make the prices on the front end GBP by default.

open: system/library/currency.php

Find:

Code: Select all

      		$this->set($this->config->get('config_currency'));
Replace With:

Code: Select all

      		//$this->set($this->config->get('config_currency'));
      		$this->set('GBP');
I left the old line in there (commented out) just in case you want to switch back to normal use later

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by HighHo » Sat Aug 06, 2011 11:01 pm

Thank you that worked perfectly for me.

Thanks again for the quick reply,
Alex.

Newbie

Posts

Joined
Sat Aug 06, 2011 9:39 pm

Post by uksitebuilder » Sat Aug 06, 2011 11:05 pm

Not sure what happens with Invoices in the back-end though, so you should check this out.

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by HighHo » Sat Aug 06, 2011 11:23 pm

Thank you, I will check it out and report any issues.

Newbie

Posts

Joined
Sat Aug 06, 2011 9:39 pm

Post by HighHo » Sat Aug 06, 2011 11:31 pm

Invoices through the backend are being set to same as frontend (£) which is pefect. (I guess it uses the currency the customer is paying with) Tested using paypal (sandbox) and cash on delivery. The reports are of course being generated with $ which I expected, would be good if they could also be in £, but its not a big issue to me.

Newbie

Posts

Joined
Sat Aug 06, 2011 9:39 pm
Who is online

Users browsing this forum: No registered users and 15 guests