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
Bookmarks