If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / Remove total colums from invoice.php

Remove total colums from invoice.php

Locked

Started by redmonds on 20 Jan 2008, 8:32 AM · Views: 2,991

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
20 Jan 2008, 8:32 AM
#1
redmonds avatar

redmonds

Zen Follower

Join Date:
Jan 2006
Posts:
108
Plugin Contributions:
1

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

30 Jan 2008, 5:21 AM
#2
pahalik avatar

pahalik

New Zenner

Join Date:
Feb 2005
Posts:
23
Plugin Contributions:
0

Re: Remove total colums from invoice.php

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

30 Jan 2008, 8:42 AM
#3
ronlee67 avatar

ronlee67

Totally Zenned

Join Date:
Sep 2006
Location:
Colorado Springs CO USA
Posts:
519
Plugin Contributions:
0

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:

 
// 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:

 
// 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:

 // 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:

 
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