Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Currency Craziness!!


Guest

Recommended Posts

Hi guys,

 

This is REALLY annoying.

 

I've had the same problem before but it was easily overcome by changing the english.php and a few other small changes. On a new OSC it doesn't want to work though.

 

Ok, my site is ONE currency, British Pounds, I've made a new currency, set the code to: GBP, value: 1.000000, set all the decimal places etc to 2. THEN, I changed the english.php to GBP also, didn't work, I tried setting the currency's 'Default Currency' option, on, didn't work! Tried clicking 'Update Currencies' several times, didn't work. I've tried changing the code in the Countries properties to GBP and guess what.. didn't fkin work!

 

It's really, really frustrating because I fixed the problem easily last time and I'm having to waste so much time just trying to sort out this stupid problem. I've spent ages already trial and erroring and I'm about to pull my hair out.

 

I don't know what else I can do. All prices are STILL displayed as 0's??

 

Anyone?! Please help a desperate guy out here!

 

Thank you!

 

Ed

Link to comment
Share on other sites

Check this post in the Installation & Config forum:

 

http://www.oscommerce.com/forums/index.php?showtopic=76173

 

Maybe it will help...

 

Terry

Terry Kluytmans

 

Contribs Installed: Purchase Without Account (PWA); Big Images, Product Availability, Description in Product Listing, Graphical Infobox, Header Tags Controller, Login Box, Option Type Feature, plus many layout changes & other mods of my own, like:

 

Add order total to checkout_shipment

Add order total to checkout_payment

Add radio buttons at checkout_shipping (for backorder options, etc.)

Duplicate Table Rate Shipping Module

Better Product Review Flow

 

* If at first you don't succeed, find out if there's a prize for the loser. *

Link to comment
Share on other sites

In response to a few e-mails I recieved: The problem is fixed, yes :) If you're having the same problems, I'll try and explain a few steps to take, because I know how annoying it is!

 

Open catalog/includes/languages/english.php (On a clean install): Open the file with notepad or a similar program that allows word finding and search for the line:

 

define('LANGUAGE_CURRENCY', 'USD');

 

If you're British (like me), you'll need to make a new currency, so replace the USD with GBP (Great British Pounds). If you want to use another currency just make one up (preferbly 3 letter abbreviation) and replace 'USD' with it. Save the file and upload.

 

Now go to the Admin area of your site and go to Currencies, I am only using 1 currency so I deleted all other currencies. Create a new currency and put the code in as 'GBP' (or the one you made up), for the value put 1.00000000, for the number of decimal points put '2' (minus quotes) for the thousand point put ',' (minus quotes), for the decimal point put '.' (minus quotes). Really, you shouldn't need to be told this, common sense helps, if you can't understand this part then OSC isn't for you. These values are only really for a reference (like I needed) incase you delete the default ones.

 

Ok, next go to Configuration >> My Store and make sure you have the country your store is based set correctly, (i.e. United Kingdom). Then go the the Countries settings (in Localizations I think?) and browse to your country in the list, then change the code in its' properties from 'GBR' to 'GBP' (or the one you created), save it and go back to Currencies. Click on 'Update Currencies' and you should get a green box at the top saying 'updated successfully' etc. If not, follow the steps above correctly. Note: GBR (the code in all properties) must be changed to something else (like GBP), for some reason it causes problems if you don't rename it (I don't know about other languages).

 

Ok now check your site again and hopefully it should display the prices properly? If it still displays them as 0's then you've made a mistake somewhere. Try reinstalling OSC and follow the above steps again (if you're desperate enough).

 

It's really about trial and error, it took me a while of doing a combination of the things, a cup of coffee also helps!

 

Hope this helps sort the problem, I understand how frustrating it can be so I thought I'd write this as a little reference for anyone else who might need help :) Hope it makes sense I'm in bitve a rush.

 

Good luck!

 

Ed

Link to comment
Share on other sites

You are saying to go to Localizations and select the country and change the properties to GBP.

 

I am UK based and have my settings as

 

Name:

United Kingdom

 

ISO Code (2): GB

 

ISO Code (3): GBR

 

Address Format: 2

and they work perfectly well, there is no need to change these default settings in order for the currency to work

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...