Thanks for your help.
Source information unprovided.I searched and found some instructions for how to do with tpl files
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
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>
Reason: Added code tags.
Uninstall the extension, then in install.xml file of the ZIP file, below:Pyrocrafter wrote: ↑Sat Jul 24, 2021 4:36 pmWhat 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
Code: Select all
<br>Tel: {{ order.telephone }}
Code: Select all
<br>Email: {{ order.email }}
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
You may like these extension : - https://www.opencart.com/index.php?rout ... r=cmsrooms
cmsroom wrote: ↑Tue Jul 27, 2021 12:26 pmYou 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
straightlight wrote: ↑Sat Jul 24, 2021 7:21 pmUninstall the extension, then in install.xml file of the ZIP file, below:Pyrocrafter wrote: ↑Sat Jul 24, 2021 4:36 pmWhat 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
simply add:Code: Select all
<br>Tel: {{ order.telephone }}
Then, clear all OC caches and browser, re-install the extension. This should resolve the issue.Code: Select all
<br>Email: {{ order.email }}
Thank You
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 ... ?htsumer wrote: ↑Thu Jul 29, 2021 10:31 amI 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');
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
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.htsumer wrote: ↑Thu Jul 29, 2021 8:56 pmThank 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>
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
You can use extension https://www.opencart.com/index.php?rout ... n_id=36701Doravow wrote: ↑Wed Jan 16, 2019 12:24 amI'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 may like these extension : - https://www.opencart.com/index.php?rout ... r=cmsrooms
Users browsing this forum: No registered users and 321 guests