Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Country drop list


fusc1

Recommended Posts

Posted

I followed the instructions in the OSCommerce book on page 104 and the country drop down list still comes up when I go to check out. Does anyone know how I can stop this. My code is located in includes/functions/html_output.php

 

I am new to php, OSC and web design also. I tried to find an answer to this in here but couldn't. Any help would be appreciated.

Thanks,

Anthony

 

////
// Creates a pull-down list of countries
function tep_get_country_list($name, $selected = '', $parameters = '') {
 $countries_array = array(array('id' => '181', 'text' => United_States));
$countries = tep_get_countries();

for ($i=0, $n=sizeof($countries); $i<$n; $i++) {
  $countries_array[] = array('id' => $countries[$i]['countries_id'], 'text' => $countries[$i]['countries_name']);
}

return tep_draw_pull_down_menu($name, $countries_array, $selected, $parameters);
 }
?>

Posted

Does anybody have any ideas about how I would go about fixing this problem? I deleted some of the countries before I found out that I could lock them out by using this, so I figured out the correct number for United States and ammended the code. According to the user manual this is supposed to only show United States but it shows US first on the drop down box. Any help would be appreciated.

 

Thanks,

 

Anthony

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...