gnarly parts Posted May 3, 2006 Posted May 3, 2006 When someone wants to set up an account, the site ask for there address, city and zip code in a strange order. Can this be change? Also, I only sell to the USA so is there a way I can stop the country drop down and just state USA as the only country. Thanks Dave Always looking for a way to improve my sites.
♥peterpil19 Posted May 3, 2006 Posted May 3, 2006 Countries and states are dealt with in admin. You can add/remove them there. --Peter CE PHOENIX SUPPORTER Support the Project, go PRO and get access to certified add ons Full-time I am a C-suite executive of a large retail company in Australia. In my spare time, I enjoying learning about web-design. Download the latest version of CE Phoenix from gitHub here
gnarly parts Posted May 3, 2006 Author Posted May 3, 2006 I realize the countries and states are dealt with in the admin but when since I only need one country I want to lose the drop down menu. Right now someone will have to drop down the country and only the USA appears. I would perfer to just have USA already there with no drop down. My real concern is the order that it ask for your address. I want to make it: Name Address 1 Address 2 City State Zip Country Phone Right now it says: Name Address Suburb Post Code City State Country Phone Thanks for any help Dave Always looking for a way to improve my sites.
Guest Posted May 3, 2006 Posted May 3, 2006 you can see this contribution. http://www.oscommerce.com/community/contributions,3607 And its better to not delete the countries from the database in case you later want to use them. Difference in country ids can be a problem for some contributions.
gnarly parts Posted May 4, 2006 Author Posted May 4, 2006 Thanks, I think this will work for the country, but how do you move the order of the postal code below the state? Always looking for a way to improve my sites.
Guest Posted May 4, 2006 Posted May 4, 2006 for that you change the actual html in the php files like in create_account.php you move the zipcode entry below. So you have in that file like <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> <tr> <td class="main"><?php echo ENTRY_CITY; ?></td> <td class="main"><?php echo tep_draw_input_field('city') . ' ' . (tep_not_null(ENTRY_CITY_TEXT) ? '<span class="inputRequirement">' . ENTRY_CITY_TEXT . '</span>': ''); ?></td> </tr> So you get the post code html row and you move it below the state (or just above the country). The country setting is few lines below: <tr> <td class="main"><?php echo ENTRY_COUNTRY; ?></td> <td class="main"><?php echo tep_get_country_list('country') . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td> </tr> So the result is <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> <tr> <td class="main"><?php echo ENTRY_COUNTRY; ?></td> <td class="main"><?php echo tep_get_country_list('country') . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td> </tr>
gnarly parts Posted May 5, 2006 Author Posted May 5, 2006 Thanks.. worked like a charm.. I owe you one. Dave Always looking for a way to improve my sites.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.