Hi,
Would you please tell me where and how to change the address layout in the invoice and delivery/shipping sections of the documents created.
The layout is:
John Smith
Street
ZIP City
Region
Country
Which is wrong for the UK.
It needs to be
John Smith
Street
City
Region
ZIP
Country
Regards, Brendan
Invoice and delivery note address format wrong
-
- Phoca Newbie
- Posts: 5
- Joined: 30 Aug 2023, 23:52
- Nidzo
- Phoca Professional
- Posts: 387
- Joined: 07 Nov 2018, 14:55
Re: Invoice and delivery note address format wrong
You should create template override of order.php file and rearange lines that starts from line 432 fo Billing Address and from line 486 for Shipping Address. There could be problem to separate ZIP and City because they are connected so Jan could give more acurate answer.
-
- Phoca Newbie
- Posts: 5
- Joined: 30 Aug 2023, 23:52
Re: Invoice and delivery note address format wrong
Hi Nidzo,
Thanks for that, I'll take a look at that file as I wait for Jan to also comment on the best way to achieve this.
Thanks for that, I'll take a look at that file as I wait for Jan to also comment on the best way to achieve this.
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Invoice and delivery note address format wrong
Hi, as Nidzo wrote, there are thousands of ways to display the address and it's not possible to control it via parameters, that's why there are layouts and overrides:
components/com_phocacart/layouts/order.php
https://www.phoca.cz/documentation/115- ... -overrides
Jan
components/com_phocacart/layouts/order.php
https://www.phoca.cz/documentation/115- ... -overrides
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 5
- Joined: 30 Aug 2023, 23:52
Re: Invoice and delivery note address format wrong
Hi,
Thanks. I've edited the order.php file and now the address is in the correct format on invoices and delivery notes.
But the address order is still wrong in the customers info section (in admin), and in the billing & shipping address section at checkout.
Which files do I need to edit to correct this?
I've had a look around, but cant seem to find the right files to override.
Many Thanks,
Brendan
Thanks. I've edited the order.php file and now the address is in the correct format on invoices and delivery notes.
But the address order is still wrong in the customers info section (in admin), and in the billing & shipping address section at checkout.
Which files do I need to edit to correct this?
I've had a look around, but cant seem to find the right files to override.
Many Thanks,
Brendan
- Nidzo
- Phoca Professional
- Posts: 387
- Joined: 07 Nov 2018, 14:55
Re: Invoice and delivery note address format wrong
Can you please post screenshot of
customers info section (in admin), and in the billing & shipping address section at checkout.
-
- Phoca Newbie
- Posts: 5
- Joined: 30 Aug 2023, 23:52
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Invoice and delivery note address format wrong
Hi, these are form fields and you manage the ordering of form fields in administration - in Form Fields section - for the checkout view. If the ordering will be changed there, even the ordering of form fields in administration will be changed.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 5
- Joined: 30 Aug 2023, 23:52
Re: Invoice and delivery note address format wrong
Thank you :)
Now, I've just gotta work out the VAT settings!
I'll start a new thread for that though.
Now, I've just gotta work out the VAT settings!
I'll start a new thread for that though.
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Invoice and delivery note address format wrong
OK
If you find Phoca extensions useful, please support the project