Page 1 of 1

Invoice and delivery note address format wrong

Posted: 31 Aug 2023, 00:03
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

Re: Invoice and delivery note address format wrong

Posted: 31 Aug 2023, 11:46
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.

Re: Invoice and delivery note address format wrong

Posted: 31 Aug 2023, 17:42
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.

Re: Invoice and delivery note address format wrong

Posted: 04 Sep 2023, 13:45
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

Re: Invoice and delivery note address format wrong

Posted: 06 Sep 2023, 23:15
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

Re: Invoice and delivery note address format wrong

Posted: 07 Sep 2023, 08:07
by Nidzo
Can you please post screenshot of
customers info section (in admin), and in the billing & shipping address section at checkout.

Re: Invoice and delivery note address format wrong

Posted: 07 Sep 2023, 22:22
by joeblack

Re: Invoice and delivery note address format wrong

Posted: 08 Sep 2023, 00:39
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

Re: Invoice and delivery note address format wrong

Posted: 08 Sep 2023, 19:41
by joeblack
Thank you :)

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

I'll start a new thread for that though.

Re: Invoice and delivery note address format wrong

Posted: 12 Sep 2023, 00:57
by Jan
OK