Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Changing the string on invoice for Tax line


Recommended Posts

This should be really simple but i am not sure where to change it.


The default invoice, when you have tax itesm, the invoices says



gst being the name of our tax.


The problem is that the GST amount isnt actually + it is really showing the amount of GST in the order


For example:


Sub-Total: $NZ79.90

GLTR-PREO-DD01-0910 Coupon Discount (20%): -$NZ15.98

Flat Rate within New Zealand (NZ Parcel Post, Next Day): $NZ6.00

+ GST: $NZ9.55

Total: $NZ69.92


The sub-total already includes the GST. The total isn't incorrect it is actually only doing subtotal - discount + shipping, but it should read 'GST content' or something else rather than '+ GST' which implies it has been added.


So i simply want to figure out where to modify the string, i know it is physically in the orders table, so i would need to change it at the time it gets inserted into the orders table.


any ideas?

Also surely this has caused other people problems, like normally you would expect subtotals to be excluding GST.



Link to comment
Share on other sites

I thought of a way around instead of trying to change what is in the database i just did a simple substitution on the invoice page.


in invoice.php


//MB: replace + GST with including GST of

$title = str_replace('+ GST','Including GST of ',$order->totals[$i]['title']);

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...