If this is your first visit, check our documentation. To post, register or login.
Forums / Currencies & Sales Taxes, VAT, GST, etc. / Changing the base currency

Changing the base currency

Locked

Started by omeriqbal on 14 Jun 2006, 9:48 AM · Views: 3,173

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
14 Jun 2006, 9:48 AM
#1
omeriqbal avatar

omeriqbal

New Zenner

Join Date:
Jun 2006
Posts:
1
Plugin Contributions:
0

Changing the base currency

Hi,

I buy all my products in a currency other than USD. I want to be able to put in my prices using that currency and as the conversion rate for USD changes, I want the prices to be calculated in USD using that.

Right now, I just created a new currency, PKR (Rs.), set the conversion rate and set it to default. However, when I put the prices as 300, it actually ends up being $300 and not PKR 300. I want it to be PKR 300, so if $1 = Rs. 60, the price would be $5. If $1 becomes Rs. 50, price would be $6 instead.

If I go with adding prices in USD, I'll have to change all the prices everytime USD to Rs. conversion rate changes.

Can this be solved easily? Can I just enter the prices of the items in Rs. instead of $?

Thanks,
Omer

16 Jun 2006, 4:35 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Changing the base currency

Wow -- this is not something that Zen Cart has been designed to do.
Nevertheless it's an interesting situation.

I think you could play with settings like this:

  1. Set your default currency to Rs.
  2. Enter your prices in Rs.
  3. Force customers to shop in USD by doing this:
    a. Admin->Configuration->My Store->"Switch To Default Language Currency" = TRUE
    b. Edit your english.php file (or whatever your default language is), and set this definition:```php
    define('LANGUAGE_CURRENCY', 'USD');
That should force them into USD mode.

c. Make sure the Currency-Selection sidebox is not enabled unless you want them to be able to purchase in Rs.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

8 Nov 2010, 4:49 AM
#3
richardsnowstar avatar

richardsnowstar

New Zenner

Join Date:
Oct 2010
Posts:
24
Plugin Contributions:
0

Re: Changing the base currency

This solution goes some way to solving a similar problem I have but doesn't seem to work completely for me.

I resell products that are priced in Euros but I can only take payment in British pounds. So I want the default currency to be euros but for my customers to only see the prices in GBP.

The solution in the previous post only seems to set the default currency to GBP if there are 2 languages. This seems to be an added complication. Does anyone know a way around this?

Also can anyone tell me how to hide the language and currency options in the header bar?