Results 1 to 2 of 2
  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.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,374
    Blog Entries
    7
    Plugin Contributions
    274

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

    Evidently this doesn't work so well , according to: http://www.zen-cart.com/showthread.php?199763

    Can you explain more of what you were initially looking for when you proposed this change?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

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

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR