Guest Posted March 31, 2003 Share Posted March 31, 2003 Hey there all how can i modify this code to hide a pulldown menu ? // Output a form pull down menu function tep_draw_pull_down_menu($name, $values, $default = '', $parameters = '', $required = false) { $field = '<select name="' . tep_parse_input_field_data($name, array('"' => '"')) . '"'; if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; if (empty($default) && isset($GLOBALS[$name])) $default = $GLOBALS[$name]; for ($i=0, $n=sizeof($values); $i<$n; $i++) { $field .= '<option value="' . tep_parse_input_field_data($values[$i]['id'], array('"' => '"')) . '"'; if ($default == $values[$i]['id']) { $field .= ' SELECTED'; } $field .= '>' . tep_parse_input_field_data($values[$i]['text'], array('"' => '"', ''' => ''', '<' => '<', '>' => '>')) . '</option>'; } $field .= '</select>'; if ($required == true) $field .= TEXT_FIELD_REQUIRED; return $field; } //// Link to comment Share on other sites More sharing options...
Druide Posted March 31, 2003 Share Posted March 31, 2003 i don't understand why you want to do this ? This has effect on the whole Shopping Cart, so you better stay of this Robert We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;) Link to comment Share on other sites More sharing options...
Guest Posted March 31, 2003 Share Posted March 31, 2003 im running a mod from Jeff .. product attribute in product listing .. because ive just one attribute for all products (Download) and not use the shipping future at all its kinda pointless to show a dropdown menu with only one attribute/option showing witch they should chouse all the time so that's the reason why i want it to hide ... i dont want to hide all dropdown's thou .. but that's easy to do ..i just need to change the tep_draw_pull_down_menu to something like tep_draw_pull_down_menu_hide but i cant figure out how i can hide it ...i can do simple changes in php but this is way over my head Richard Link to comment Share on other sites More sharing options...
Druide Posted March 31, 2003 Share Posted March 31, 2003 there is another mod that can do that for you: products options.... dont know the exact name you can select the options for it: radio buttons etc... Robert We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;) Link to comment Share on other sites More sharing options...
Guest Posted April 1, 2003 Share Posted April 1, 2003 i found the mod u where talking about im afraid i cant use it though ... theres been to much code changes in the php files to get that mod to work right know of any other solutions maybe ? it would help me out allot ..this is the last thing i need to do to get the shop up and running Thnx Richard Link to comment Share on other sites More sharing options...
Guest Posted August 25, 2005 Share Posted August 25, 2005 Has anyone been able to do this????? I really need to do the same thing ... please help!!!!!!!!!!!!!!! :'( Link to comment Share on other sites More sharing options...
boxtel Posted August 25, 2005 Share Posted August 25, 2005 im running a mod from Jeff .. product attribute in product listing ..because ive just one attribute for all products (Download) and not use the shipping future at all its kinda pointless to show a dropdown menu with only one attribute/option showing witch they should chouse all the time so that's the reason why i want it to hide ... i dont want to hide all dropdown's thou .. but that's easy to do ..i just need to change the tep_draw_pull_down_menu to something like tep_draw_pull_down_menu_hide but i cant figure out how i can hide it ...i can do simple changes in php but this is way over my head Richard <{POST_SNAPBACK}> well, if all your products have only one option then that is no longer an option so I do not understand why you installed that contribution. You could have simply added the term "Download" to your product listing. Now, it might be easier to alter the call for the dropdown menu in the product listing to a simple echo of the attribute. Treasurer MFC Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.