Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Address format - address line 2 and suburb


Luchysoft

Recommended Posts

Posted

I'm trying to do a few things to the formatting of addresses. In many cases there is a need for a second address line, however it seems out of the box OSC only provides one address field. I noticed in the DB that there is also a suburb field on the addressbook table, but it doesn't appear to be used in any of the five seeded address formats. Given the format style of streets$cr$city, $postcode$cr$statecomma$country for the address formats, how would I add the suburb field in there to act as a second address line? I'm assuming I would change suburb to address 2 in the language file, but what code do I use in the address format to get it in there?

Also can I just add it in to the address format and it will show up on add address screens, or do I need to add the field somewhere else?

 

thanks

Posted

suburb is already in the address formats as the second line of the $streets variable.

 

Hth,

Matt

Always back up before making changes.

Archived

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

×
×
  • Create New...