This is a discussion on Create Account Feature, missing State field within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hi, How can I add the state field to my Create Account located at: http://www.roseysmall.com/catalog/create_account....
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi, How can I add the state field to my Create Account located at: http://www.roseysmall.com/catalog/create_account.php I don't know where to find this and I'm afraid to mess it up if I touch it (like a few other things I've broken). Thank you, yet again, for your help. Rose |
|
#2
| |||
| |||
| Quote:
if (ACCOUNT_STATE == 'true') { $zone_id = 0; $check_query = tep_db_query("select count(*) as total from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "'"); $check = tep_db_fetch_array($check_query); $entry_state_has_zones = ($check['total'] > 0); if ($entry_state_has_zones == true) { $zone_query = tep_db_query("select distinct zone_id from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "' and (zone_name like '" . tep_db_input($state) . "%' or zone_code like '%" . tep_db_input($state) . "%')"); if (tep_db_num_rows($zone_query) == 1) { $zone = tep_db_fetch_array($zone_query); $zone_id = $zone['zone_id']; } else { $error = true; to this: if (ACCOUNT_STATE == 'true') { $zone_id = 0; $check_query = tep_db_query("select count(*) as total from " . TABLE_ZONES . " where zone_country_id = '223" . (int)$country . "'"); $check = tep_db_fetch_array($check_query); $entry_state_has_zones = ($check['total'] > 0); if ($entry_state_has_zones == true) { $zone_query = tep_db_query("select distinct zone_id from " . TABLE_ZONES . " where zone_country_id = '223" . (int)$country . "' and (zone_name like '" . tep_db_input($state) . "%' or zone_code like '%" . tep_db_input($state) . "%')"); if (tep_db_num_rows($zone_query) == 1) { $zone = tep_db_fetch_array($zone_query); $zone_id = $zone['zone_id']; } else { $error = true; You can also find a good thread on the topic at: http://forums.oscommerce.com/index.php?showtopic=53879 Hope this helps Richard |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Missing Create and account button.. | hdgajjar | osCommerce 2.2 Modification Help | 1 | 04-10-2006 04:57 PM |
| State List Missing on Signup form | zTech | osCMax v1.7 Discussion | 4 | 09-27-2004 06:53 PM |
| State list missing on Create Account Page | zTech | osCMax v1.7 Discussion | 1 | 09-13-2004 08:15 AM |
| account page - state drop down | kodersoftware | osCMax v1.7 Discussion | 2 | 05-28-2004 09:31 AM |
| Create Account,Checkout,My Account, Language Pictures probs! | Mikey | osCommerce 2.2 Installation Help | 0 | 03-08-2004 11:20 PM |