Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2006
    Posts
    110
    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
    31
    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
    504
    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 invoice link in email
    By bean_2k1 in forum General Questions
    Replies: 5
    Last Post: 3 May 2009, 07:43 PM
  2. Remove Company from Email and Invoice
    By godspeed27 in forum Managing Customers and Orders
    Replies: 7
    Last Post: 28 May 2007, 12:30 PM
  3. how do i remove my address from the invoice header?
    By tarynhipp in forum General Questions
    Replies: 4
    Last Post: 28 Jan 2007, 04:05 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
  •