How to add Customer’s Telephone / e-mail in Opencart 2.0 Invoice?

How to add Customer's Telephone / e-mail in Opencart 2.0 Invoice?

How to add Customer’s Telephone / e-mail in Opencart 2.0 Invoice?

Opencart is a free PHP based shopping cart system for shopping/ecommerce websites. If you have domain and hosting then you can create a shopping website free of cost by using Opencart system.

Recently Opencart upgraded its version Opencart 1.5 to Opencart 2.0; Opencart 2.0 is fully responsive and compatible with any device. It has not upgraded its theme or look even now available lots of functionality.

Well, this post I am writing for single problem which is coming in Opencart 2.0 system.

Here is question of Mike who asked question from Valsolution.com;

Question: I have installed Opencart 2.0 free shopping cart, when I click to order invoice, it shows only customer address, there is phone no. and email is not showing? how to make changes.

Here is very simple solution for edit Opencart Invoice.

First of all login to your webhosting account and click on “File Manager”.

File-Manager

Login to your WebHosting Account and Visit “File Manager”

Go to file manager >>> admin/view/template/sale

edit-file

Go to file manager >>> admin/view/template/sale and edit order_invoice.tpl

Now Go to in your file manager >>> admin/view/template/sale and edit order_invoice.tpl

add-code

Replace given below code in opencart invoice

 

After open above “Order_invoice.tpl”, Press CTRL+F to find “<td><address>”.

now add email and phone no. below customer address, you will see below line

” <?php echo $order[‘payment_address’]; ?> “
to add telephone no. in invoice add this line.
</br>Phone: <?php echo $order[‘telephone’]; ?>
or to add email id in your invoice add this line..
<br><?php echo $order[’email’]; ?><br/>

Here is complete code after make changes.

<td><address>
<?php echo $order[‘payment_address’]; ?>
<br><?php echo $order[’email’]; ?><br/>
</br>Phone: <?php echo $order[‘telephone’]; ?>
</address></td>
<td><address>
<?php echo $order[‘shipping_address’]; ?>
<br><?php echo $order[’email’]; ?><br/>
</br>Phone: <?php echo $order[‘telephone’]; ?>
</address></td>

for any problem here is original code…

<td><address>
<?php echo $order[‘payment_address’]; ?>
</address></td>
<td><address>
<?php echo $order[‘shipping_address’]; ?>
</address></td>

Now I am sure, your problem will be solved if you think you are getting any error or your problem no solved then please let me know. So that I find other issues deeply.

Check your domain ranking

Pradeep Tomar is a Passionate blogger and Web Developer. I am doing blogging since 2011 & write about Blogging, SEO, Social Media Marketing, Internet Marketing, Make Money Online, Shopping Cart solution, & Technology.

Tags

5 thoughts on “How to add Customer’s Telephone / e-mail in Opencart 2.0 Invoice?

Leave a Reply