Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Invoice Sub-total, Carriage, VAT, Total


rhubarb

Recommended Posts

Posted

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?

  • 1 month later...
Posted

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

Posted

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.

  • 1 month later...
Posted

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)

  • 1 month later...

Archived

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

×
×
  • Create New...