Full service web hosting, great prices and support. Starts at $1.99/month!
Results 1 to 2 of 2

Thread: How do I reorder the fields in the address display?

  1. #1
    jptechnical
    Guest


    Default How do I reorder the fields in the address display?

    I am changing the suburb field to a 'Job Title or Student ID' field since it is not otherwise used and is a plain text field.

    ~~Unless there is a simple way of adding a field to the account signup page and account modify field for a simple plain text field.

    currently create_account.php displays this:
    Company Details
    Company Name: text box
    Job Title or Student ID: text box eg: PT, OT, ATC, MD, PTA, OTA
    and it works fine here, just a lang file change and a small text added in the template below the field.

    The problem is you can't edit this field from the account properties screen since it is part of the address. I can live with this and just specify that the address book is the place to change this.

    Here is the problem. I don't want this to show up in the address below the street address... I want it below the name and before the street address.

    Currently it looks like this:
    Jesse Perry
    718 Happy Ave, suite 105
    MCSE, CNA, blah blah
    Your Town, WA
    90210
    United States
    What I want is this:

    Jesse Perry
    MCSE, CNA, blah blah
    718 Happy Ave, suite 105
    Your Town, WA
    90210
    United States
    Can anyone tell me where the address is pulled from? It seems to be a fairly common bit of code so it must be coming from some function file or something.

    Thanks.

  2. #2
    jptechnical
    Guest


    Default

    Got it!

    The address format IS in the database (address_format) and the display order is changeable.

    US uses format_id 2 by default (in countries admin) and I changed it from
    Code:
    $firstname $lastname$cr$streets$cr$city, $state    $postcode$cr$country
    to
    Code:
    $firstname $lastname$cr$suburb$cr$streets$cr$city, $state    $postcode$cr$country
    Only drawback is that there is a blank line between the name and street address if there is no suburb in their profile. I can live with that!

Similar Threads

  1. Auto Reorder
    By KCount in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 03-25-2005, 04:57 AM
  2. reorder level
    By groggory in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 12-01-2004, 02:24 PM
  3. Contact Us New Fields
    By eviternity in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 05-25-2004, 08:19 AM
  4. Address book address line ordering
    By Anonymous in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 11-29-2003, 05:54 PM
  5. new fields problem
    By Dizzee in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 06-02-2003, 07:09 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •