Post by Doravow » Wed Jan 16, 2019 12:24 am

I'm looking for instructions on how to add the customer's phone number and email address to the invoice in Opencart 3. I searched and found some instructions for how to do with tpl files, but I haven't found anything for Opencart 3 and twig files.

Thanks for your help.

Newbie

Posts

Joined
Fri Jul 27, 2018 4:38 am

Post by straightlight » Wed Jan 16, 2019 6:22 am

I searched and found some instructions for how to do with tpl files
Source information unprovided.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by tantrinh » Sat Jan 19, 2019 3:55 pm

Hi,
I got the same question like you , there are many instructions out there . But to save your time , I show you

Edit file order_invoice.twig in the folder admin/view/template/sale
Find the keyword <td> and add or replace with

Code: Select all

<td style="width: 50%;font-size:11px;"><address>
            {{ order.payment_address }}
            <br>
            Phone number : {{ order.telephone }}
            </address></td>
          <td style="width: 50%;font-size:11px;"><address>
            {{ order.shipping_address }}
            <br>
            Phone number : {{ order.telephone }}
            </address></td>
            
Hope this help
Last edited by straightlight on Fri Apr 17, 2020 10:34 pm, edited 1 time in total.
Reason: Added code tags.

Newbie

Posts

Joined
Fri Nov 02, 2018 9:26 pm

User avatar
Active Member

Posts

Joined
Sun May 11, 2014 2:04 pm

Post by Pyrocrafter » Sat Jul 24, 2021 4:36 pm

What about the customer email address. It's so annoying not having it on the invoice. I have to log in to admin to find their email to send designs

New member

Posts

Joined
Tue May 14, 2013 4:49 am

Post by straightlight » Sat Jul 24, 2021 7:21 pm

Pyrocrafter wrote:
Sat Jul 24, 2021 4:36 pm
What about the customer email address. It's so annoying not having it on the invoice. I have to log in to admin to find their email to send designs
Uninstall the extension, then in install.xml file of the ZIP file, below:

Code: Select all

<br>Tel: {{ order.telephone }}
simply add:

Code: Select all

<br>Email: {{ order.email }}
Then, clear all OC caches and browser, re-install the extension. This should resolve the issue.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

New member

Posts

Joined
Fri Sep 28, 2018 1:37 am

Post by straightlight » Tue Jul 27, 2021 11:29 pm

cmsroom wrote:
Tue Jul 27, 2021 12:26 pm
You can use. https://www.opencart.com/index.php?rout ... oms&page=2

Code: Select all

</br>
?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by htsumer » Thu Jul 29, 2021 10:15 am

straightlight wrote:
Sat Jul 24, 2021 7:21 pm
Pyrocrafter wrote:
Sat Jul 24, 2021 4:36 pm
What about the customer email address. It's so annoying not having it on the invoice. I have to log in to admin to find their email to send designs
Uninstall the extension, then in install.xml file of the ZIP file, below:

Code: Select all

<br>Tel: {{ order.telephone }}
simply add:

Code: Select all

<br>Email: {{ order.email }}
Then, clear all OC caches and browser, re-install the extension. This should resolve the issue.

Thank You
Last edited by htsumer on Thu Jul 29, 2021 10:59 am, edited 1 time in total.

Newbie

Posts

Joined
Tue Apr 20, 2021 4:27 am

Post by htsumer » Thu Jul 29, 2021 10:31 am

I handled it manually.
How can I import Custom Field data to invoice. What is the variable?
admin/index.php?route=customer/custom_field&user_token=lVOE2NCDUFJawoeIhQgoS1Lju9O3E3

custom_field

Code: Select all

TRUNCATE TABLE `ocjp_custom_field_description`;

INSERT INTO `ocjp_custom_field_description` (`custom_field_id`, `language_id`, `name`) VALUES ('1', '1', 'T.C./Vergi No');
INSERT INTO `ocjp_custom_field_description` (`custom_field_id`, `language_id`, `name`) VALUES ('2', '1', 'Vergi Dairesi');

Newbie

Posts

Joined
Tue Apr 20, 2021 4:27 am

Post by straightlight » Thu Jul 29, 2021 7:29 pm

htsumer wrote:
Thu Jul 29, 2021 10:31 am
I handled it manually.
How can I import Custom Field data to invoice. What is the variable?
admin/index.php?route=customer/custom_field&user_token=lVOE2NCDUFJawoeIhQgoS1Lju9O3E3

custom_field

Code: Select all

TRUNCATE TABLE `ocjp_custom_field_description`;

INSERT INTO `ocjp_custom_field_description` (`custom_field_id`, `language_id`, `name`) VALUES ('1', '1', 'T.C./Vergi No');
INSERT INTO `ocjp_custom_field_description` (`custom_field_id`, `language_id`, `name`) VALUES ('2', '1', 'Vergi Dairesi');
Variable ... ?

By using an extension: https://www.opencart.com/index.php?rout ... n_id=25477 .

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by htsumer » Thu Jul 29, 2021 8:56 pm

Thank You.
order_invoice.twig
I have added phone and email here. How do I add variable like this as custom field.
sample question,

viewtopic.php?f=190&t=222478&p=813911&h ... ld#p813911

https://prnt.sc/1hm9unq

Code: Select all

<tbody>
        <tr>
          <td><address>
            {{ order.payment_address }}
			<br>Tel: {{ order.telephone }}
			<br>Email: {{ order.email }}
			-------------------------------------------------<<<<---need code here for custom field
            </address></td>
          <td><address>
            {{ order.shipping_address }}
			</address></td>
        </tr>
      </tbody>

Newbie

Posts

Joined
Tue Apr 20, 2021 4:27 am

Post by straightlight » Thu Jul 29, 2021 9:28 pm

htsumer wrote:
Thu Jul 29, 2021 8:56 pm
Thank You.
order_invoice.twig
I have added phone and email here. How do I add variable like this as custom field.
sample question,

viewtopic.php?f=190&t=222478&p=813911&h ... ld#p813911

https://prnt.sc/1hm9unq

Code: Select all

<tbody>
        <tr>
          <td><address>
            {{ order.payment_address }}
			<br>Tel: {{ order.telephone }}
			<br>Email: {{ order.email }}
			-------------------------------------------------<<<<---need code here for custom field
            </address></td>
          <td><address>
            {{ order.shipping_address }}
			</address></td>
        </tr>
      </tbody>
At this point, you'd need to contact the extension developer to resolve this issue.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by htsumer » Thu Jul 29, 2021 9:40 pm

Thank You

Newbie

Posts

Joined
Tue Apr 20, 2021 4:27 am

Post by cmsroom » Thu Dec 30, 2021 5:47 pm

Doravow wrote:
Wed Jan 16, 2019 12:24 am
I'm looking for instructions on how to add the customer's phone number and email address to the invoice in Opencart 3. I searched and found some instructions for how to do with tpl files, but I haven't found anything for Opencart 3 and twig files.

Thanks for your help.
You can use extension https://www.opencart.com/index.php?rout ... n_id=36701

You may like these extension : - https://www.opencart.com/index.php?rout ... r=cmsrooms


New member

Posts

Joined
Fri Sep 28, 2018 1:37 am
Who is online

Users browsing this forum: Semrush [Bot] and 96 guests