garyeqm Posted October 3, 2005 Posted October 3, 2005 And why isnt it included in the default installation? Thanks Gary
♥Vger Posted October 3, 2005 Posted October 3, 2005 It isn't included in the default installation, because when osCommerce was first written the English language side of things was set to US Dollars. Given the size of the USA market that's not surprising. To add the UK currency you go to your osCommerce control panel, under Localisation --> Currencies, click to add New Currency. The 3 letter code for UK Sterling is GBP, left symbol is ?, right symbol is nothing, decimal point is a dot, and thousand point is a comma, and decimal points is 2. If this will be your default currency then set its value to 1.00, tick the box to make it the defaul currency, and once it's been added click to update currencies. Then you need to go to includes/langauges/english.php look for 'USD' and change to 'GBP' - download the file to edit it, don't use the osCommerce File Manager. Vger
doktorwunder Posted October 3, 2005 Posted October 3, 2005 There is a 'Currencies' section in your admin (in 'Localizations') where you can easily add a currency. But there is another change you need to make if you wanna use UK Pounds as your default currency... Open your language files in catalog/includes/languages. They're named 'english.php', 'french.php', ... Then find the line of code where the default currency is set. For example, in the english.php, you should have : // 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'); Replace it with : // if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language) define('LANGUAGE_CURRENCY', 'GBP'); Hope this helps Dr.Wunder Always need help :(
radders Posted October 3, 2005 Posted October 3, 2005 Isn't there a contribution which consists of a default UK installation of osCommerce? That must save people a lot of work changing things like lbs to grammes etc. as well. Sorry i don't know where this is but I have read a thread about it recently.
garyeqm Posted October 3, 2005 Author Posted October 3, 2005 Thanks a lot for your replies. I also need an ITALIAN currency, any offerings? :)
radders Posted October 3, 2005 Posted October 3, 2005 Maybe this: Title: Euro Code: EUR Symbol Left: Symbol Right: EUR Decimal Point: . Thousands Point: , Decimal Places: 2
doktorwunder Posted October 3, 2005 Posted October 3, 2005 Isn't there a contribution which consists of a default UK installation of osCommerce?That must save people a lot of work changing things like lbs to grammes etc. as well. Sorry i don't know where this is but I have read a thread about it recently. Well, if you follow the advice given here, you'll see that 2 quick and easy changes are enough to change your default currency. About changing lbs to grammes, it's not difficult either... I don't remember which file is involved to display 'gr(s)' or 'kg(s)' instead of 'lb(s)' but it only takes one line of code to modify as well. You don't have to convert anything... The 'lb(s)' you see is just for display. Hope you understand what I mean... If not, just PM me and I'll try to help you (even though I'm not really a genius lol) Thanks a lot for your replies.I also need an ITALIAN currency, any offerings? :) Italy is a part of the European Union so their currency is Euro (only UK kept their Sterling pounds, I think) If you need it as your default currency, don't forget to follow the same steps I mentioned for UK Pounds, and replace 'GBP' by 'EUR'. Dr.Wunder Always need help :(
Recommended Posts
Archived
This topic is now archived and is closed to further replies.