rhubarb Posted March 1, 2004 Posted March 1, 2004 How can I show the Invoice total as net of tax (ex VAT), the carriage as net and the Total to be the sum of sub-total + carriage + VAT?
rhubarb Posted April 25, 2004 Author Posted April 25, 2004 On the Invoice page and email I want to show: Sub-total without tax Carriage without tax Tax --------------------- Total including tax I could set display with tax to false but I want to show net and gross prices on the product pages. To a customer they would think it was easy to change the formatting, but looking at the code it is quite involved; The 'title' and 'text' fields are output from the $order->totals array and the data originates from the orders_total table but goes via various classes/modules. The only solution I can see is to capture the data from the $order->totals array and reformat it before outputting, eg remove the tax element where necessary. Related posts: Sub-total row displays the full price during, the order confirmation process Order email-Shipping & Tax on 2 lines, Order email-Shipping & Tax on 2 lines Total in WORDS, Where is the Total in invoice.php stored
zzfritz Posted April 25, 2004 Posted April 25, 2004 Assuming that you want the sequence of order total elements to be the same on the confirmation page as on the invoice and email (to which your post refers), that is determined by the sort order of the items at Admin -> Modules -> Order Total Modules. Give the correct sort order to these, and everything falls into place.
rhubarb Posted June 14, 2004 Author Posted June 14, 2004 zzfritz: The sort order deals with the order of display, but it doesn't help with inc/ex tax display. I've finally solved the issue by adding a field called 'net' to the orders_total table and by editing the following files: checkout_process.php order.php (class) order_total.php (class) ot_loworderfee.php (module) ot_shipping.php (module) ot_subtotal.php (module) ot_tax.php (module) ot_total.php (module) invoice.php (admin) order.php (admin class)
helohelo Posted July 28, 2004 Posted July 28, 2004 can you be a bit more specific? Wich files? Can you make a contributions of this? Keesjan
Recommended Posts
Archived
This topic is now archived and is closed to further replies.