osCmax v2.5 User Manual
Results 1 to 2 of 2

automatic change currency

This is a discussion on automatic change currency within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; how to change automatically currency on each page depending the language? Two simple steps – 1. In includes/languages/english.php and in ...

      
  1. #1
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Post automatic change currency

    how to change automatically currency on each page depending the language?

    Two simple steps –

    1. In includes/languages/english.php and in each additional language you should correctly define the code of the currency for this language, before the last ?>:

    For example with EURO -
    In includes/languages/english.php -
    define('LANGUAGE_CURRENCY', 'EUR');

    For example with BGN –
    In includes/languages/bulgarian.php -
    define('LANGUAGE_CURRENCY', 'BGN');

    Codes as EUR and BGN should be the same as in the admin section/Localization/Currencies

    2. In includes/configure.php put this code before the last ?>:
    define("USE_DEFAULT_LANGUAGE_CURRENCY", true);

    That’s it!
    The module is tested in English and Bulgarian
    in http://www.nasena.eu/

    More...
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  2. #2
    Lurker
    Join Date
    Jul 2010
    Posts
    1
    Rep Power
    0


    Default Re: automatic change currency

    Changing a currency is depend on the language you are using. Some are changing their files but some just add the currency they wanted to have.

Similar Threads

  1. Auto change currency based on IP address location V1.0
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 12-28-2008, 02:21 AM
  2. Auto change currency based on IP address location V1.0
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 12-27-2008, 01:01 PM
  3. Auto change currency based on IP address location
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 12-27-2008, 01:01 PM
  4. change the look - remove the currency and language box
    By hmpf99 in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 09-19-2004, 05:59 AM
  5. 0 price displayed after currency change
    By stando in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 01-26-2004, 11:21 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •