Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Currency not converting to default


hankster6911

Recommended Posts

I am setting up a store in canada. I would like the customer to be able to view the prices in either canadian or us dollars.

This is my set up

Configuration-Switch to default language currency FALSE

Localization-CAD(defaullt) Value 1.00000

USD currency used update currency for value.

Includes/language/english

// if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language)

define('LANGUAGE_CURRENCY', 'USD');

 

I have also set it to CAD and there is no change in my issue, which is:

 

When I add a product using the price in CAD the amount shows in my store as USD, so if a customer chooses the currency box he will see both prices like I want but in the wrong order.

For example product price is $165.00 CAD, entered in the catalog/products. Go to the store and it shows CAD as $188.00 and USD as $165.00. The store is thinking that the price I entered is US dollars and in actuality I am entering CAD dollars. It is converting my 165 to CAD when it already is being entered as CAD. Obviously I have a setting backwards but I do not know what it is.

 

Wendy

Link to comment
Share on other sites

Okay, this is a problem created by the way osCommerce was written. It was written with three languages - only one of them English, with the default English currency being US Dollars.

 

There is a connection between languages and currency - so if you truly want your site to use both Canadian and US Dollars for the English language, and treat them equally, then you need to create an extra 'English' language - for both the catalog and admin areas.

 

In both 'catalog' and 'admin' make a copy of the 'english' folder and the english.php files and renamed them canadian_english. In both canadian_english.php files make the default currency 'CAD' and not 'USD'. Alter the icon in the canadian_english folder to the canadian flag (should be one somewhere in contributions).

 

Now when someone selects the Canadian flag icon they will switch to the Canadian dollar.

 

You can also select Canadian English as your language in the admin panel.

 

This allows you to customise your language in includes/languages/canadian_english.php. So if you want to change all references to Shopping Cart to Shopping Basket you can do so. You can also change the date format of mm/dd/yyyy to dd/mm/yyyy just for Canadian. Look in the includes/languages/german or spanish.php for the dd/mm/yyyy formatting.

 

Vger

Link to comment
Share on other sites

I copied and renamed both english folders and the english.php. I could only find notation of default currency in the shop/english.php file not in the admin

I now have both flags showing under language in the site.

It is still working the opposite though, when you click the candian flag it shows $188.00 when you click the us flag is shows 165.00 This would be correct if the orginal price entered in admin was $188.00 in candaian but it is $165.00 CAD so the US should show $145.00

This is the site

http://www.babeefunk.com/shop/index.php

Thank you for your quick response and helpfulness.

Wendy

 

 

 

Okay, this is a problem created by the way osCommerce was written. It was written with three languages - only one of them English, with the default English currency being US Dollars.

 

There is a connection between languages and currency - so if you truly want your site to use both Canadian and US Dollars for the English language, and treat them equally, then you need to create an extra 'English' language - for both the catalog and admin areas.

 

In both 'catalog' and 'admin' make a copy of the 'english' folder and the english.php files and renamed them canadian_english. In both canadian_english.php files make the default currency 'CAD' and not 'USD'. Alter the icon in the canadian_english folder to the canadian flag (should be one somewhere in contributions).

 

Now when someone selects the Canadian flag icon they will switch to the Canadian dollar.

 

You can also select Canadian English as your language in the admin panel.

 

This allows you to customise your language in includes/languages/canadian_english.php. So if you want to change all references to Shopping Cart to Shopping Basket you can do so. You can also change the date format of mm/dd/yyyy to dd/mm/yyyy just for Canadian. Look in the includes/languages/german or spanish.php for the dd/mm/yyyy formatting.

 

Vger

Link to comment
Share on other sites

I have found out what the probelm is here, it has to do with the canadian tax rate. It is adding them to the product price before checkout and then once again at checkout. I've been digging thru the forum here but I do not see anyone with this issue. Will post a new topic now that I know what the problem really is.

 

Wendy

Link to comment
Share on other sites

In both 'catalog' and 'admin' make a copy of the 'english' folder and the english.php files and renamed them canadian_english. In both canadian_english.php files make the default currency 'CAD' and not 'USD'. Alter the icon in the canadian_english folder to the canadian flag (should be one somewhere in contributions).

Vger

 

hi Vger,

 

I only can find currency setting in 'catalog' english.php and not in 'admin' english.php.

 

TIA

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...