Latest News: (loading..)

jspivey

Members
  • Content count

    4
  • Joined

  • Last visited

About jspivey

Profile Information

  • Real Name
    Josh Spivey
  1. First off, great contrib. Thanks. A note on "includes_modules/checkout_new_address.php". Line 80 instructions read: // +Country-State Selector $zones_array = array(); $zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = " . $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'); } // -Country-State Selector $country should be replaced by (int)$country in the query. Also a note. Because $country has not been set the first time this page is viewed, the state box comes up as a standard text box. Not a big deal. What I did was add this in the line 80 instructions: // +Country-State Selector // ADDED TO CONTRIB if(!$country){ $country = DEFAULT_COUNTRY; } // ADDED TO CONTRIB $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'); } // -Country-State Selector
  2. I'll take some info too. Thanks.
  3. That's funny. I just did the same thing. :blush:
  4. I am looking for an identical mod.