Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Modify Address Layout on Invoices


heypachuco

Recommended Posts

Hello,

I need to know if a customers shipping address is commercial or residential. To gather this information, I have renamed the "suburb" field to "RES... / Comm..." and marked it a required field. This works, but I would like to move this field to display at the bottom of the customer information on the invoices and packing slips.

 

Right now, the information is displayed like this:

 

NAME

ADDRESS

RESIDENTIAL or COMMERCIAL

CITY, STATE ZIP

COUNTRY

 

I would like RESIDENTIAL / COMMERCIAL to be under the COUNTRY.

 

Any help would be greatly appreciated.

 

Thanks.

Link to comment
Share on other sites

There is an option to modify the address format

 

go to Admin-> Locations / Taxes -> Countries and you can see there is something called

 

Address Format: 1

 

This selects the way to display the address for each country

 

You need to edit your address_format table using php myadmin (cant do this over oscommerce admin)

 

You can see the format is something like this $firstname $lastname$cr$streets$cr$city, $postcode$cr$statecomma$country

 

Create a new address_format_id and change the variable so the what you have used RESIDENTIAL OR COMMMERCAL appears at the end. I think you are using $city so it would be like this

 

$firstname $lastname$cr$streets, $postcode$cr$statecomma$country$cr$city

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...