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

languages mixed up

This is a discussion on languages mixed up within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; In the Admin, when I go to the order details page (admin/orders.php), the subtotal, tax, etc. lines are in French. ...

      
  1. #1
    Active Member chrismole's Avatar
    Join Date
    Dec 2003
    Location
    Chicago
    Posts
    102
    Rep Power
    9


    Default languages mixed up

    In the Admin, when I go to the order details page (admin/orders.php), the subtotal, tax, etc. lines are in French. It looks like this:
    Sous-Total : $194.00
    TVA : $104.48
    Réduction : $0.00
    Livraison : $0.00
    Total : $298.48
    Plus, I see the same thing when I go to edit orders (admin/edit_orders.php).

    Is this a code or db issue? I have the default language set to "en" in the config. Any help is much appreciated.

    Thx,
    C

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default RE: languages mixed up

    Auto select language might be the problem - WHAT is the default language the server you installed it on? You can change the language displayed in the admin then "remove" french and german if you don't need it. If you need them then you could copy the admin english files over the french files..... then it alway displays english in the ADMIN only - even if french is being selected...
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

  3. #3
    Active Member chrismole's Avatar
    Join Date
    Dec 2003
    Location
    Chicago
    Posts
    102
    Rep Power
    9


    Default RE: languages mixed up

    funny... I thought of that and tried it, but no luck, it still shows in French. Must be a bug in the code.

  4. #4
    osCMax Developer

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


    Default RE: languages mixed up

    It is a bug in the manual order entry mod. It was written by a person that French is their native language, and the mod is not fully dynamic language compatible. Perhaps a more recent version of the mod has corrected this.
    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

  5. #5
    Member
    Join Date
    Feb 2006
    Posts
    63
    Rep Power
    0


    Default RE: languages mixed up

    I have the same bug in mine, however I am not sure its a bug in a file but a bug in the db. Mine was fine up to last night when I discovered the client had added some 200 more products into his old OSC database, so during my process or inserting these, I found it was easier to do a complete re-sync of the databases and then simply import the required tables, same as last time.

    Everything went perfectly (since I have this down now) exept now my edit orders page in admin has french wording.

    This to me suggests its a database entry, problem is i cant find it.

  6. #6
    Member
    Join Date
    Feb 2006
    Posts
    63
    Rep Power
    0


    Default RE: languages mixed up

    I found the problem was located in the Orders_totals section of the database. I have absolutely no idea how they got there, when the others are all english, but it is simply fixed.

    This is what the area concerned looks like in phpmyadmin



    Wish I knew how it got there though, thats truly weird

    As it turns out the 2 orders this corresponds to was my testing the create order option for a customer, these entries were then created.

    This leads me to believe the french issue is caused by the creation of orders by admin in admin?

    Anyone got any ideas?

  7. #7
    Member
    Join Date
    Feb 2006
    Posts
    63
    Rep Power
    0


    Default RE: languages mixed up

    ok confirmation. If you create a new order it creates the french text. Does anyone know where this is happening

  8. #8
    Member
    Join Date
    Feb 2006
    Posts
    63
    Rep Power
    0


    Default RE: languages mixed up

    You can find the fault inside the following file - admin/create_orders.php

    it looks like this

    $sql_data_array = array('orders_id' => $insert_id,
    //Comment out line you don't need
    //'new_value' => $new_value, //for 2.2
    'orders_status_id' => $new_value, //for MS1 or MS2
    'date_added' => 'now()');
    tep_db_perform(TABLE_ORDERS_STATUS_HISTORY, $sql_data_array);


    $sql_data_array = array('orders_id' => $insert_id,
    'title' => "Sous-Total :",
    'text' => $temp_amount,
    'value' => "0.00",
    'class' => "ot_subtotal",
    'sort_order' => "1");
    tep_db_perform(TABLE_ORDERS_TOTAL, $sql_data_array);


    $sql_data_array = array('orders_id' => $insert_id,
    'title' => "Réduction :",
    'text' => $temp_amount,
    'value' => "0.00",
    'class' => "ot_customer_discount",
    'sort_order' => "2");
    tep_db_perform(TABLE_ORDERS_TOTAL, $sql_data_array);


    $sql_data_array = array('orders_id' => $insert_id,
    'title' => "TVA :",
    'text' => $temp_amount,
    'value' => "0.00",
    'class' => "ot_tax",
    'sort_order' => "2");
    tep_db_perform(TABLE_ORDERS_TOTAL, $sql_data_array);


    $sql_data_array = array('orders_id' => $insert_id,
    'title' => "Livraison :",
    'text' => $temp_amount,
    'value' => "0.00",
    'class' => "ot_shipping",
    'sort_order' => "3");
    tep_db_perform(TABLE_ORDERS_TOTAL, $sql_data_array);



    $sql_data_array = array('orders_id' => $insert_id,
    'title' => "Total :",
    'text' => $temp_amount,
    'value' => "0.00",
    'class' => "ot_total",
    'sort_order' => "4");
    tep_db_perform(TABLE_ORDERS_TOTAL, $sql_data_array);

Similar Threads

  1. Mixed Downloads + Physical Product = No Shipping
    By avibodha in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 01-26-2007, 11:48 PM
  2. Subtracting from Inventory - mixed store
    By talus in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 06-17-2005, 06:24 AM
  3. Languages
    By DozeR in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 12-18-2004, 10:38 PM
  4. Only using english, how to get rid of other languages ?
    By twinklep in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 09-17-2004, 02:04 PM
  5. Languages...
    By ReginaStelling in forum osCommerce 2.2 Installation Help
    Replies: 0
    Last Post: 04-14-2004, 05:19 AM

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
  •