Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Invoice Sub-total, Carriage, VAT, Total


Recommended Posts

  • 1 month later...

On the Invoice page and email I want to show:


Sub-total without tax

Carriage without 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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 1 month later...

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:


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)

Link to comment
Share on other sites

  • 1 month later...


This topic is now archived and is closed to further replies.

  • Create New...