
Hi there, I'd like to do some changes in invoice - remove some fields, move 'Surname' below 'Name', not next to it etc. Which file I should edit to do that? I've found this file - admin/view/template/sale/order_invoice.twig, but I don't see these fields there, just 'order.payment_address' and 'order.shipping_address'.


Last edited by odiumz on Sun Jul 24, 2022 10:06 pm, edited 1 time in total.
You should look at the controller for that view.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Legendary Member
OC version. Once identified from the controller, creating an event trigger would be ideal if no extensions can already provide what you're looking for from the Marketplace already.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
You can set the address format for each county. System-> Localisation -> Countries. Then edit a country and change the Address Format.
It's not so easy to change the default for all countries. It's in about 10 locations in 4 files.
admin/controller/sale/order.php
catalog\controller\account\address.php
account\order.php
catalog/controller/mail/order.php
It's not so easy to change the default for all countries. It's in about 10 locations in 4 files.
admin/controller/sale/order.php
catalog\controller\account\address.php
account\order.php
catalog/controller/mail/order.php
The opencart-3 repository uses the new address format feature.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
3.0.3.6straightlight wrote: ↑Thu Jul 21, 2022 6:43 amOC version. Once identified from the controller, creating an event trigger would be ideal if no extensions can already provide what you're looking for from the Marketplace already.
It's not only the address I'd like to change. I need the surname to be in new line, and use 'Address line 2' for different purpose so it should be above all the address information.ADD Creative wrote: ↑Thu Jul 21, 2022 4:26 pmYou can set the address format for each county. System-> Localisation -> Countries. Then edit a country and change the Address Format.
Who is online
Users browsing this forum: No registered users and 20 guests