Friday, March 18, 2011

OScommerce: How to change your default currency to Taka

In some cases you may need to change your default currency in OScommerce Shopping Cart. As you know, in most of the cases the primary currency is set to dollar (USD) by default. I am going to show you how you can change the default currency to Bangladeshi Taka. Below are the steps that need to be taken:

1. From the OScommerce admin panel, add Bangladeshi Taka as a currency (if you never did this before) under the Localization->Currency menu and set it to default currency.

2. Then you have to change the english.php file under language folder. That is;
    on
    catalog/includes/languages/english.php:
    define('LANGUAGE_CURRENCY', 'BDT');

After making these changes, you will see that, at the currency option select section, the default currency is set to Bangladeshi Taka. (Simple isn't it!!!!!!!). You can change your default currency to any other currency in the same way.

Some Important measures need to be taken care of:

If you previously added product prices in any other currency value, then you have to change all those values to Bangladeshi Currency (or whatever currency you have made default) value as your default currency is set to Taka. The other currencies will be converted based on your default taka values of the products. (This is only applicable if your store has multiple currency support).