Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2006
    Posts
    107
    Plugin Contributions
    1

    Default Remove total colums from invoice.php

    Hia all.

    I want to remove some of the totals colums from my invoice.php. I don't see any need to have Price (ex) or more so Total (ex). I feel it will fit better on the printed page and be a bit easier to read for the customers if I drop these columns.

    I did try editing the invoice.php and could see how to drop the table headings but it looks as though all of the totals info is tied up in one php script pulling it from somewhere else. It is was above my head.

    Can anyone advise.

    Thanks
    Raoul

  2. #2
    Join Date
    Feb 2005
    Posts
    29
    Plugin Contributions
    0

    Default Re: Remove total colums from invoice.php

    I agree. Can anyone advise, like the thread starter asked?

  3. #3
    Join Date
    Sep 2006
    Location
    Colorado Springs CO USA
    Posts
    516
    Plugin Contributions
    2

    Default Re: Remove total colums from invoice.php

    Here's how I did it in v1.3.7. Should be close to same in v1.3.8. There is no override system for the admin files so you will be modifying core files. If you upgrade you need to compare files and copy these changes. A good reason to maintain a changelog!

    admin/invoice.php beginning around line 178:
    Code:
     
    // REVISED RCL 4/23/2007 TO REMOVE COLUMN WITH TAX EXCLUDED
    //           '        <td class="dataTableContent" align="right" valign="top"><b>' .
    //                    $currencies->format(zen_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']), true, $order->info['currency'], $order->info['currency_value']) .
    //                    ($order->products[$i]['onetime_charges'] != 0 ? '<br />' . $currencies->format(zen_add_tax($order->products[$i]['onetime_charges'], $order->products[$i]['tax']), true, $order->info['currency'], $order->info['currency_value']) : '') .
    //                  '</b></td>' . "\n" .
               '        <td class="dataTableContent" align="right" valign="top"><b></b></td>' . "\n" .
    // REVISED RCL 4/23/2007 TO REMOVE COLUMN WITH TAX INCLUDED
    //         '        <td class="dataTableContent" align="right" valign="top"><b>' .
    //                    $currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) .
    //                   ($order->products[$i]['onetime_charges'] != 0 ? '<br />' . $currencies->format($order->products[$i]['onetime_charges'], true, $order->info['currency'], $order->info['currency_value']) : '') .
    //                  '</b></td>' . "\n" .
    admin/orders.php beginning around line 478:
    Code:
     
    // MODIFIED TO ELIMINATE UNNEEDED COLUMNS WITH TAX EXCLUDED AND INCLUDED
    //         '            <td class="dataTableContent" align="right" valign="top"><strong>' .
    //                        $currencies->format(zen_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']), true, $order->info['currency'], $order->info['currency_value']) .
    //                       ($order->products[$i]['onetime_charges'] != 0 ? '<br />' . $currencies->format(zen_add_tax($order->products[$i]['onetime_charges'], $order->products[$i]['tax']), true, $order->info['currency'], $order->info['currency_value']) : '') .
    //                      '</strong></td>' . "\n" .
               '           <td class="dataTableContent" align="right" valign="top"><strong>' .
                            '</strong></td>' . "\n" .
    //                        $currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) .
    //                        ($order->products[$i]['onetime_charges'] != 0 ? '<br />' . $currencies->format($order->products[$i]['onetime_charges'], true, $order->info['currency'], $order->info['currency_value']) : '') .
    //                      '</strong></td>' . "\n" .
    admin/includes/languages/english/invoice.php beginning around line 29:
    Code:
     // Invoice modified to eliminate columns with price with tax
    //define('TABLE_HEADING_PRICE_EXCLUDING_TAX', 'Price (ex)');
    define('TABLE_HEADING_PRICE_EXCLUDING_TAX', 'Price     ');
    //define('TABLE_HEADING_PRICE_INCLUDING_TAX', 'Price (inc)');
    define('TABLE_HEADING_PRICE_INCLUDING_TAX', '           ');
    //define('TABLE_HEADING_TOTAL_EXCLUDING_TAX', 'Total (ex)');
    define('TABLE_HEADING_TOTAL_EXCLUDING_TAX', '          ');
    //define('TABLE_HEADING_TOTAL_INCLUDING_TAX', 'Total (inc)');
    define('TABLE_HEADING_TOTAL_INCLUDING_TAX', 'Total      ');
    /admin/includes/languages/english/orders.php beginning around line 45:
    Code:
     
    define('TABLE_HEADING_PRICE_EXCLUDING_TAX', 'Price     ');
    define('TABLE_HEADING_PRICE_INCLUDING_TAX', '          ');
    define('TABLE_HEADING_TOTAL_EXCLUDING_TAX', '          ');
    define('TABLE_HEADING_TOTAL_INCLUDING_TAX', 'Total      ');
    Ron
    www.aspenshopsonline.com - ZenCart 1.3.9h
    www.wilkssupply.com - ZenCart 1.3.9h
    www.un-du.net - ZenCart 1.3.8a

 

 

Similar Threads

  1. Remove white background under elements in the colums
    By DaltonCSexton in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 15 Mar 2011, 10:19 PM
  2. Replies: 1
    Last Post: 9 Sep 2009, 12:11 PM
  3. Replies: 1
    Last Post: 24 Aug 2009, 07:53 PM
  4. Removing Total (excluding tax) from invoice
    By ivanc in forum Managing Customers and Orders
    Replies: 1
    Last Post: 16 Apr 2009, 08:29 PM
  5. Replies: 3
    Last Post: 31 Jul 2008, 07:45 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR