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 ) ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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
| ||||
| ||||
| 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') . '&nbsp;' . (tep_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="inputRequirement">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?></td>
</tr>
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 '&nbsp;<span class="inputRequirement">' . ENTRY_STATE_TEXT;
?>
</td>
</tr>
Hope this helps you out. |
|
#3
| |||
| |||
| 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
| |||
| |||
| 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
| ||||
| ||||
| 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! |
|
#6
| |||
| |||
| 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! |
| Thread Tools | |
| |
| ||||
| 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 |