osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Address order

This is a discussion on Address order within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Hi there, We went live with our oscmax shop a couple of weeks ago (for the curious souls: www.amerelia.nl ) ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 11-07-2006, 01:08 PM
New Member
 
Join Date: Jul 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Draxeiro
Default Address order

Hi there,

We went live with our oscmax shop a couple of weeks ago (for the curious souls: www.amerelia.nl) and traffic is slowly starting to build up plus orders are coming in. Which is good

Though I did notice something today that I absolutely need to change. But I don't have a clue where.

If I look at the address details the adress order is wrong, it shows the postcode after the city. That should be the other way around!

It basically shows anywhere, address details, invoice, order overview. Which would make sense I guess. Still, it needs to be changed.

Can somebody give me a few pointers where I need to do this?

Many thanks in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 11-08-2006, 07:07 AM
deviantla's Avatar
New Member
 
Join Date: Jan 2006
Posts: 28
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
deviantla
Default RE: Address order

Take a look at your create_account.tpl.php file located in templates/fallback/content directory. Find the following code:
Code:
              <tr>
                <td class="main"><?php echo ENTRY_POST_CODE; ?></td>
                <td class="main"><?php echo tep_draw_input_field('postcode') . ' ' . (tep_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="inputRequirement">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?></td>
              </tr>
You can move this down in the file. I would imagine you would want to place it under the state, around line 145:
Code:
              <tr>
                <td class="main"><?php echo ENTRY_STATE; ?></td>
                <td class="main">
<?php
// BOF: MOD - Country-State Selector
        $zones_array = array();
         $zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = " . (int)$country . " order by zone_name");
        while ($zones_values = tep_db_fetch_array($zones_query)) {
          $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']);
        }
		if (count($zones_array) > 0) {
          echo tep_draw_pull_down_menu('state', $zones_array);
		} else {
		  echo tep_draw_input_field('state');
		}
// EOF: MOD - Country-State Selector
    if (tep_not_null(ENTRY_STATE_TEXT)) echo ' <span class="inputRequirement">' . ENTRY_STATE_TEXT;
?>
                </td>
              </tr>
You can change post code to ZIP code or whatever you want in your language file, along with anything else you need to change verbiage to.

Hope this helps you out.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 11-08-2006, 02:02 PM
New Member
 
Join Date: Jul 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Draxeiro
Default RE: Address order

Hi Greg,

Thanks a lot for your tips but doesn't that just change the order on which it displays on the create account page while people are filling in the fields of their account?

What I mean is the way it displays after you create an account. When an address is displayed after say you placed an order it is in the following order:
name
street address
city, postcode

For my country (The Netherlands) it needs to be the other way around.

Hope you can help me on that.

Thanks a lot, mate
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 11-18-2006, 09:21 AM
New Member
 
Join Date: Jul 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Draxeiro
Default RE: Address order

greg, can you clarify for me?

Or somebody else, is this the way to do it or do I have to change something in the database or on another page?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 11-21-2006, 12:32 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,568
Thanks: 1
Thanked 84 Times in 71 Posts
Rep Power: 10
jpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of light
Default RE: Address order

There is a SETTING in the ADMIN panel for the default Address display....... It is a COUNTRY SETTING!!!!!


-'Locations / Taxes' -'Countries'
then select and click on "EDIT" on your country you want to change the address format for... then modify
'Address Format:'


Or if it is easier to just change the SQL

TABLE address_format
'1', '$firstname $lastname$cr$streets$cr$city, $postcode$cr$statecomma$country', '$city / $country'
'2', '$firstname $lastname$cr$streets$cr$city, $state $postcode$cr$country', '$city, $state / $country'
'3', '$firstname $lastname$cr$streets$cr$city$cr$postcode - $statecomma$country', '$state / $country'
'4', '$firstname $lastname$cr$streets$cr$city ($postcode)$cr$country', '$postcode / $country'
'5', '$firstname $lastname$cr$streets$cr$postcode $city$cr$country', '$city / $country'


Good luck!
__________________
JPF - osCMax Fourm Moderator
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 11-22-2006, 10:07 AM
New Member
 
Join Date: Jul 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Draxeiro
Default

JPF, if you were a woman I'd kiss you!

That did the trick for my country, the Netherlands. Obviously I will also take a look at the address formats of other countries where we have customers so I can set the correct format there also.

For the life of me I couldn't find where to change that... turns out it was pretty simple after all. And I had been searching hard in the admin.

Clearly not hard enough

THANKS!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Address Order splendideyetorture osCommerce 2.2 Modification Help 3 06-03-2005 03:23 PM
Still have a ~ in the address bar Bsnrjones osCMax v1.7 Installation 2 02-02-2004 07:35 AM
Address book address line ordering Anonymous osCMax v1.7 Discussion 2 11-29-2003 05:54 PM
address net-tec osCommerce 2.2 Modification Help 4 01-24-2003 11:49 AM
customer comments in order and extra order email karen_l osCommerce 2.2 Modification Help 0 01-03-2003 11:51 AM


All times are GMT -8. The time now is 02:29 PM.


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