Post by muslimsg » Thu Apr 08, 2010 1:44 pm

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

New member

Posts

Joined
Thu Sep 17, 2009 8:39 pm

Post by readyman » Thu Apr 08, 2010 2:52 pm

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


User avatar
Global Moderator

Posts

Joined
Wed May 20, 2009 5:16 am
Location - Sydney

Post by muslimsg » Thu Apr 08, 2010 3:01 pm

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"

New member

Posts

Joined
Thu Sep 17, 2009 8:39 pm

Post by readyman » Thu Apr 08, 2010 3:11 pm

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)

http://www.alreadymade.com
Follow me on twitter.com/alreadymade


User avatar
Global Moderator

Posts

Joined
Wed May 20, 2009 5:16 am
Location - Sydney

Post by muslimsg » Thu Apr 08, 2010 7:53 pm

thanks readyman

I have done it....

thanks again

New member

Posts

Joined
Thu Sep 17, 2009 8:39 pm

Post by airetechit » Thu Apr 08, 2010 10:06 pm

Can you tell us how you did it, we also require this?

Best Regards,
David Catherall,
AireTech IT.


New member

Posts

Joined
Fri Feb 05, 2010 1:46 am
Location - Goole, United Kingdom

Post by muslimsg » Sun Apr 11, 2010 2:48 am

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?

New member

Posts

Joined
Thu Sep 17, 2009 8:39 pm

Post by airetechit » Sun Apr 11, 2010 5:20 am

find which line?

Best Regards,
David Catherall,
AireTech IT.


New member

Posts

Joined
Fri Feb 05, 2010 1:46 am
Location - Goole, United Kingdom

Post by muslimsg » Sun Apr 11, 2010 1:37 pm

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?

New member

Posts

Joined
Thu Sep 17, 2009 8:39 pm

Post by jfn99 » Mon Apr 12, 2010 7:24 am

How to add clients Phone number to invoice and order?
thanks
Last edited by i2Paq on Mon Apr 12, 2010 11:33 pm, edited 1 time in total.
Reason: Merged 2 topics

New member

Posts

Joined
Thu Feb 25, 2010 5:14 pm

Post by muslimsg » Mon Apr 12, 2010 11:04 pm

http://forum.opencart.com/viewtopic.php?f=20&t=13085
jfn99 wrote:How to add clients Phone number to invoice and order?
thanks

New member

Posts

Joined
Thu Sep 17, 2009 8:39 pm

Post by jfn99 » Mon Apr 12, 2010 11:27 pm

Can you help me get this working on OC1.4.6?
It's just not working for me
Thanks

New member

Posts

Joined
Thu Feb 25, 2010 5:14 pm

Post by muslimsg » Tue Apr 13, 2010 3:57 pm

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

New member

Posts

Joined
Thu Sep 17, 2009 8:39 pm

Post by jfn99 » Tue Apr 13, 2010 4:34 pm

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
Last edited by straightlight on Fri Apr 17, 2020 10:31 pm, edited 1 time in total.
Reason: Added code tags.

New member

Posts

Joined
Thu Feb 25, 2010 5:14 pm

Post by doremi » Sat May 15, 2010 4:15 pm

I didn't work for me too...anyone managed to get the telephone number and email on the Invoice?

New member

Posts

Joined
Thu May 13, 2010 11:58 pm

Post by Acecare » Tue Jul 06, 2010 1:32 pm

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.

www.computerseo.com


Newbie

Posts

Joined
Tue Jul 06, 2010 12:46 pm

Post by Qphoria » Tue Jul 06, 2010 9:56 pm

This has been added to 1.4.8 fyi

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

User avatar
Active Member

Posts

Joined
Sun May 11, 2014 2:04 pm
Who is online

Users browsing this forum: No registered users and 32 guests