Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Different address format


Lawrence

Recommended Posts

Posted

Hi all

 

How can I change the format of the adress on the invoice?

 

Instead of

 

"Place, ZIP code"

 

it should be

 

"ZIP Place" (without ",")

 

Thank you all in advance!

 

Lawrence

Posted

ok if I am not mistaken I think its in (catalog)/admin/includes/languages/english/invoice.php

 

and I could be wrong

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Posted

Have a look at contribution #2816 which customises OSC for the UK. Any other country, use software like BeyondCompare to see which files this contribution actually changes and adapt to your liking.

 

Good luck

Posted

Hi all

 

This didnt solve the problem... I will explain it again:

 

I would like to have a different order at the delivery adress on the invoices:

 

Instead of:

"First Name" "Name"

"Street"

"City", "ZIP Code"

 

it should be

"First Name" "Name"

"Street"

"ZIP Code" "City"

 

How can I do this?

 

Thanks a lot!

 

Lawrence

Posted

Address formats are stored in the address_format table in the database. They are based off of the customer's country. Each country is assigned an address format. If you wish to make a global change (site-wide) to the address format, then you need only adjust the format for your country in the address_format table. If the change you wish to make needs to be applied to invoice only, then you can create a new address format as you desire, then change admin/invoice.php on line 54:

 

			<td class="main"><?php echo tep_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>'); ?></td>

 

 

Replace '$order->customer['format_id']' with your new address_format_id. This will always print the invoice as you specify, regardless of the customer's country's format id.

Contributions

 

Discount Coupon Codes

Donations

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...