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
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
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.
http://www.alreadymade.com
Follow me on twitter.com/alreadymade
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..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.
means I need "Contact Details" on Print Invoice"
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)
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)
http://www.alreadymade.com
Follow me on twitter.com/alreadymade
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
and ur done...
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?
sorry my mistake i forgot to add the line which u have to find
here is the line of code
so the new code will be
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}';
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?
http://forum.opencart.com/viewtopic.php?f=20&t=13085
jfn99 wrote:How to add clients Phone number to invoice and order?
thanks
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
Attachments
Thankyou, but it didn't work
got the following error:
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
Last edited by straightlight on Fri Apr 17, 2020 10:31 pm, edited 1 time in total.
Reason: Added code tags.
Reason: Added code tags.
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.
Who is online
Users browsing this forum: Google [Bot] and 120 guests