Results 1 to 6 of 6

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 ) ...

      
  1. #1
    New Member
    Join Date
    Jul 2005
    Posts
    8
    Rep Power
    0


    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.

  2. #2
    New Member deviantla's Avatar
    Join Date
    Jan 2006
    Posts
    28
    Rep Power
    0


    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.

  3. #3
    New Member
    Join Date
    Jul 2005
    Posts
    8
    Rep Power
    0


    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

  4. #4
    New Member
    Join Date
    Jul 2005
    Posts
    8
    Rep Power
    0


    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?

  5. #5
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,688
    Rep Power
    22


    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 - To contact, post on the forum or click here
    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!

  6. #6
    New Member
    Join Date
    Jul 2005
    Posts
    8
    Rep Power
    0


    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!

Similar Threads

  1. Address Order
    By splendideyetorture in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 06-03-2005, 04:23 PM
  2. Still have a ~ in the address bar
    By Bsnrjones in forum osCMax v1.7 Installation
    Replies: 2
    Last Post: 02-02-2004, 07:35 AM
  3. Address book address line ordering
    By Anonymous in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 11-29-2003, 05:54 PM
  4. address
    By net-tec in forum osCommerce 2.2 Modification Help
    Replies: 4
    Last Post: 01-24-2003, 11:49 AM
  5. customer comments in order and extra order email
    By karen_l in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 01-03-2003, 11:51 AM

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
  •