Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how to convert select box into simple string in oscommerce customer's update page


ucitianz

Recommended Posts

Hello,

 

I am working on Oscommerce site and I want to do this. Please advise how can I do it? thx

 

On admin panel, we can update customers information ( customers.php ), here is customer's info

Address

Street Address

City:

State:

Zip Code

Country // selectbox

 

now everything is fine what i want is to have just a string i.e. 'United States' instead off selection box for Country. When I go and write that and delete this code

 

<?php

if ($error == true) {

if ($entry_country_error == true) {

echo tep_draw_pull_down_menu('entry_country_id', tep_get_countries(), $cInfo->entry_country_id) . ' ' . ENTRY_COUNTRY_ERROR;

} else {

echo tep_get_country_name($cInfo->entry_country_id) . tep_draw_hidden_field('entry_country_id');

}

} else {

echo tep_draw_pull_down_menu('entry_country_id', tep_get_countries(), $cInfo->entry_country_id);

}

?>

 

it does not let me to update the user info and says, state selection is necessary.

 

Please help me!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...