Results 1 to 2 of 2

Threaded View

  1. #1
    Join Date
    Jun 2008
    Location
    Bordeaux, France
    Posts
    69
    Plugin Contributions
    6

    Default Formatting order's totals - admin page 'order.php',

    On the admin page 'order.php', the subtotal, shipping and total are not formated according to the currency like the order lines above.
    (particulary for the right/left symbol)

    Suggest to use:
    Code:
    ZENCART-1.3.9f-08142010\admin\orders.php
    Insert formatting on that line
               '                <td align="right" class="'. str_replace('_', '-', $order->totals[$i]['class']) . '-Amount">' . $order->totals[$i]['text'] . '</td>' . "\n" .
    
    Gives
                '                <td align="right" class="'. str_replace('_', '-', $order->totals[$i]['class']) . '-Amount">' . $currencies->format($order->totals[$i]['value'], false) . '</td>' . "\n" .
    with adding the field 'value' in:
    (the only field not recovered in the sql query)
    Code:
    ZENCART-1.3.9f-08142010\admin\includes\classes\order.php
    
          $totals = $db->Execute("select title, text, class, value
                                  from " . TABLE_ORDERS_TOTAL . "
                                  where orders_id = '" . (int)$order_id . "'
                                  order by sort_order");
    Last edited by gob33; 13 Sep 2010 at 05:12 PM.

 

 

Similar Threads

  1. Replies: 5
    Last Post: 22 Jun 2013, 02:57 AM
  2. Showing order totals in the Admin
    By Scott_C in forum Customization from the Admin
    Replies: 2
    Last Post: 1 Feb 2010, 09:11 AM
  3. How do I Edit Order of Order Totals in Order Confirmation Email?
    By toussi in forum Managing Customers and Orders
    Replies: 1
    Last Post: 20 Mar 2009, 08:05 AM
  4. Order totals formatting the wrong way around
    By mitch_j in forum General Questions
    Replies: 6
    Last Post: 22 Dec 2006, 09:07 AM

Posting Permissions

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