osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

How do I reorder the fields in the address display?

This is a discussion on How do I reorder the fields in the address display? within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; I am changing the suburb field to a 'Job Title or Student ID' field since it is not otherwise used ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 03-12-2005, 04:05 PM
New Member
 
Join Date: Jan 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jptechnical
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:
Quote:
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:
Quote:
Jesse Perry
718 Happy Ave, suite 105
MCSE, CNA, blah blah
Your Town, WA
90210
United States
What I want is this:

Quote:
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 03-12-2005, 08:40 PM
New Member
 
Join Date: Jan 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jptechnical
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 12:05 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax