Community Forums

Automatically load a currency other than default

General support for technical problems with OpenCart v1.x

Automatically load a currency other than default

Postby Marburg » Mon Mar 12, 2012 11:31 pm

Hi guys,

First time poster long time lurker.

I have the default currency on my site set as USD & would like to keep it this way as this is the currency my supplier uses. The site currently loads in USD & is viewable in AUD only if you click the A$ under currency. If possible, I would like the site to load in AUD & have the option to be viewed USD.
Does anyone know if this is possible?

I am using 1.5.1.2
Marburg
 
Posts: 6
Joined: Fri Jan 27, 2012 12:38 pm

Re: Automatically load a currency other than default

Postby Qphoria » Tue Mar 13, 2012 2:50 am

very nice and clean
You can force AUD
1. EDIT: index.php

2. FIND:
Code: Select all
$registry->set('currency', new Currency($registry));


3. AFTER, ADD:
Code: Select all
$currency = $registry->get('currency');
$currency->set('AUD');
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18212
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: Automatically load a currency other than default

Postby Marburg » Wed Mar 14, 2012 2:02 pm

Worked like a charm, thanks!
Marburg
 
Posts: 6
Joined: Fri Jan 27, 2012 12:38 pm

Re: Automatically load a currency other than default

Postby anti91 » Wed May 02, 2012 11:20 pm

Qphoria Can you help me ? I can't change currency on my web site index. currency has'nt change When I changed it index.
Please help me and Look it: alisverisbook.(c)(o)(m)
anti91
 
Posts: 56
Joined: Tue Aug 30, 2011 12:27 am


Return to General Support

Who is online

Users browsing this forum: Google Feedfetcher and 90 guests

Hosted by Arvixe Web Hosting