Invoice and delivery note address format wrong

Phoca Cart - complex e-commerce extension
joeblack
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 30 Aug 2023, 23:52

Invoice and delivery note address format wrong

Post by joeblack »

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
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 387
Joined: 07 Nov 2018, 14:55

Re: Invoice and delivery note address format wrong

Post by Nidzo »

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.
joeblack
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 30 Aug 2023, 23:52

Re: Invoice and delivery note address format wrong

Post by joeblack »

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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Invoice and delivery note address format wrong

Post by Jan »

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

Image


https://www.phoca.cz/documentation/115- ... -overrides
Jan
If you find Phoca extensions useful, please support the project
joeblack
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 30 Aug 2023, 23:52

Re: Invoice and delivery note address format wrong

Post by joeblack »

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
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 387
Joined: 07 Nov 2018, 14:55

Re: Invoice and delivery note address format wrong

Post by Nidzo »

Can you please post screenshot of
customers info section (in admin), and in the billing & shipping address section at checkout.
joeblack
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 30 Aug 2023, 23:52

Re: Invoice and delivery note address format wrong

Post by joeblack »

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Invoice and delivery note address format wrong

Post by Jan »

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.

Image

Jan
If you find Phoca extensions useful, please support the project
joeblack
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 30 Aug 2023, 23:52

Re: Invoice and delivery note address format wrong

Post by joeblack »

Thank you :)

Now, I've just gotta work out the VAT settings!

I'll start a new thread for that though.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Invoice and delivery note address format wrong

Post by Jan »

OK
If you find Phoca extensions useful, please support the project
Post Reply