Page 1 of 1
Telephone number on Invoice
Posted: Thu Apr 08, 2010 1:44 pm
by muslimsg
Hi all,
basically by store deals with "Cash on delivery" payment option. I need customer telephone number on the invoice so that the delivery man can call the customer for exact address or contact him/her...
plz show me a way to do it... its very useful to have telephone number on the invoice...
regards
Re: Telephone number on Invoice
Posted: Thu Apr 08, 2010 2:52 pm
by readyman
It's right there underneath the email on the invoice page... can you post the url, so I can match it in my installation? I may be missing something here.
Re: Telephone number on Invoice
Posted: Thu Apr 08, 2010 3:01 pm
by muslimsg
readyman wrote:It's right there underneath the email on the invoice page... can you post the url, so I can match it in my installation? I may be missing something here.
Sorry I forgot to mention that I want to see the Telephone Number in Admin Panel after I click the Invoice Button on the order Page which will print the Invoice..
means I need "Contact Details" on Print Invoice"
Re: Telephone number on Invoice
Posted: Thu Apr 08, 2010 3:11 pm
by readyman
Ah I see now, you mean in the admin when you click print invoice, which you are using as a shipping/packing slip as well.
Just quickly... You'll have to make changes to these files - I don't have time right now, but I'm just letting you know which files need updating if you want to tinker with it.
admin/controller/sale/order.php - don't be confused by telephone in this file, it is the main store telephone, not the customers one.
admin/view/template/sale/order_invoice.tpl
I'll revisit this later tonight... ideally you also need to add the phone number field to the shipping page so that it will appear on the invoice in the shipping column (because it's specific to the shipping address)
Re: Telephone number on Invoice
Posted: Thu Apr 08, 2010 7:53 pm
by muslimsg
thanks readyman
I have done it....
thanks again
Re: Telephone number on Invoice
Posted: Thu Apr 08, 2010 10:06 pm
by airetechit
Can you tell us how you did it, we also require this?
Re: Telephone number on Invoice
Posted: Sun Apr 11, 2010 2:48 am
by muslimsg
hi,
just find the following line from down of the file :
admin/controller/customer/order.php
on the first occurrence of this line add this code in the end
Code: Select all
"<br><b>Customer Telephone:</b> " . '{telephone}' . "\n" . "<b>Customer Email:</b> " . '{email}';
and ur done...
airetechit wrote:Can you tell us how you did it, we also require this?
Re: Telephone number on Invoice
Posted: Sun Apr 11, 2010 5:20 am
by airetechit
find which line?
Re: Telephone number on Invoice
Posted: Sun Apr 11, 2010 1:37 pm
by muslimsg
sorry my mistake

i forgot to add the line which u have to find
here is the line of code
Code: Select all
$format = '{firstname} {lastname}' . "\n" . '{company}' . "\n" . '{address_1}' . "\n" . '{address_2}' . "\n" . '{city} {postcode}' . "\n" . '{zone}' . "\n" . '{country}' "<br><b>Customer Telephone:</b> " . '{telephone}' . "\n" . "<b>Customer Email:</b> " . '{email}';
so the new code will be
Code: Select all
$format = '{firstname} {lastname}' . "\n" . '{company}' . "\n" . '{address_1}' . "\n" . '{address_2}' . "\n" . '{city} {postcode}' . "\n" . '{zone}' . "\n" . '{country}' "<br><b>Customer Telephone:</b> " . '{telephone}' . "\n" . "<b>Customer Email:</b> " . '{email}';
airetechit wrote:find which line?
Add clients Phone number to invoice
Posted: Mon Apr 12, 2010 7:24 am
by jfn99
How to add clients Phone number to invoice and order?
thanks
Re: Add clients Phone number to invoice
Posted: Mon Apr 12, 2010 11:04 pm
by muslimsg
http://forum.opencart.com/viewtopic.php?f=20&t=13085
jfn99 wrote:How to add clients Phone number to invoice and order?
thanks
Re: Telephone number on Invoice
Posted: Mon Apr 12, 2010 11:27 pm
by jfn99
Can you help me get this working on OC1.4.6?
It's just not working for me
Thanks
Re: Telephone number on Invoice
Posted: Tue Apr 13, 2010 3:57 pm
by muslimsg
upload the attached file to "admin/controller/sale" folder
jfn99 wrote:Can you help me get this working on OC1.4.6?
It's just not working for me
Thanks
Re: Telephone number on Invoice
Posted: Tue Apr 13, 2010 4:34 pm
by jfn99
Thankyou, but it didn't work
got the following error:
Code: Select all
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/florist/public_html/admin/controller/sale/order.php on line 815
Re: Telephone number on Invoice
Posted: Sat May 15, 2010 4:15 pm
by doremi
I didn't work for me too...anyone managed to get the telephone number and email on the Invoice?
Re: Telephone number on Invoice
Posted: Tue Jul 06, 2010 1:32 pm
by Acecare
It's been a long time when I used my telephone number in invoice. The process is almost the same with muslimsg, did you double check it? As of now, I have no problem of using it.
Re: Telephone number on Invoice
Posted: Tue Jul 06, 2010 9:56 pm
by Qphoria
This has been added to 1.4.8 fyi
Re: Telephone number on Invoice
Posted: Fri Apr 17, 2020 10:29 pm
by imdevlper18