Community Forums

[SOLVED] Display TAX/VAT number on my invoices

Please post any issues you are having concerning installation or upgrade of OpenCart v1.x

[SOLVED] Display TAX/VAT number on my invoices

Postby jontycasson » Fri Dec 16, 2011 3:47 pm

The problem I have is that I would like to place my companies VAT number on the invoices I print through admin.

For example if im selling to a business owner they may want to claim the VAT back and would need my VAT number.

I would like to place it on the bottom of each printed invoice that goes with the goods in the post.

Is this possible?
Last edited by jontycasson on Sun Dec 18, 2011 6:08 am, edited 1 time in total.
Image
Vidal Cassoon - Hair and Beauty Specialists
jontycasson
 
Posts: 59
Joined: Tue Apr 12, 2011 1:01 pm
Location: Cheshire

Re: Display TAX/VAT number on my invoices

Postby madimar » Fri Dec 16, 2011 3:54 pm

It is possible modifying the code of invoice template file.
If you just want your own VAT number it is quite easy.
On the other side, if you would like to collect VAT numbers of your customers during registration and manage also VAT exemption (when applicable) you need more complex extensions... like mine! See the links in signature for further details.
M

Sent from my Desire HD using Tapatalk
User avatar
madimar
 
Posts: 1199
Joined: Thu Sep 24, 2009 5:27 am

Re: Display TAX/VAT number on my invoices

Postby jontycasson » Fri Dec 16, 2011 4:03 pm

Ok brilliant that it is possible...

I just want my own VAT number showing on my invoices

Would you be able to show me where the code goes so that it is displayed at the bottom of every invoice?
Image
Vidal Cassoon - Hair and Beauty Specialists
jontycasson
 
Posts: 59
Joined: Tue Apr 12, 2011 1:01 pm
Location: Cheshire

Re: Display TAX/VAT number on my invoices

Postby madimar » Fri Dec 16, 2011 4:04 pm

Sure, now I'm writing from my mobile phone. I will write you detailed instructions later!
M

Sent from my Desire HD using Tapatalk
User avatar
madimar
 
Posts: 1199
Joined: Thu Sep 24, 2009 5:27 am

Re: Display TAX/VAT number on my invoices

Postby madimar » Sat Dec 17, 2011 12:02 pm

Here I am. Just checked. You need to work on the following file:

\admin\view\template\sale\order_invoice.tpl

It is a normal php/html file. In the first part you have the header with store info:
Code: Select all
  <table class="store">
    <tr>
      <td><?php echo $order['store_name']; ?><br />
        <?php echo $order['store_address']; ?><br />
        <?php echo $text_telephone; ?> <?php echo $order['store_telephone']; ?><br />
        <?php if ($order['store_fax']) { ?>
        <?php echo $text_fax; ?> <?php echo $order['store_fax']; ?><br />
        <?php } ?>
        <?php echo $order['store_email']; ?><br />
        <?php echo $order['store_url']; ?></td>
      <td align="right" valign="top"><table>


You can put your VAT number where you prefer, for example:

Code: Select all
  <table class="store">
    <tr>
      <td><?php echo $order['store_name']; ?><br />
        <?php echo $order['store_address']; ?><br />
        <?php echo $text_telephone; ?> <?php echo $order['store_telephone']; ?><br />
        <?php if ($order['store_fax']) { ?>
        <?php echo $text_fax; ?> <?php echo $order['store_fax']; ?><br />
        <?php } ?>
        <?php echo $order['store_email']; ?><br />
        <?php echo "VAT Number: 12345678901" ?><br />
        <?php echo $order['store_url']; ?></td>
      <td align="right" valign="top"><table>


Let me know if it works!

M
User avatar
madimar
 
Posts: 1199
Joined: Thu Sep 24, 2009 5:27 am

[SOLVED] Re: Display TAX/VAT number on my invoices

Postby jontycasson » Sun Dec 18, 2011 6:07 am

Many thanks! That is just what I was after!
Image
Vidal Cassoon - Hair and Beauty Specialists
jontycasson
 
Posts: 59
Joined: Tue Apr 12, 2011 1:01 pm
Location: Cheshire


Return to Installation, Upgrade, & Config Support

Who is online

Users browsing this forum: Yahoo [Bot] and 16 guests

Hosted by Arvixe Web Hosting