New Zenner
- Join Date:
- Dec 2007
- Location:
- South, UK
- Posts:
- 66
- Plugin Contributions:
- 0
Help with a bit of coding! Alternative to creating drop-down list
Hello, I wasnt sure where to post this, hopefully this is the right place.
I am trying to change some coding so I can display a list of available product attributes on the product listing page instead of a drop down box.
I would like to change this code:
$options_menu[] = zen_draw_pull_down_menu('id[' . $products_options_names->fields['products_options_id'] . ']', $products_options_array, $selected_attribute, 'id="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '" size="3"') . "\n";
So $options_menu[] becomes a simple text list rather than a drop down box. I am self-taught and dont know too much about php but I have tried using a foreach statement to display the attributes held in $products_options_array but I cant get it to work.
Would anyone have any suggestions?
Thanks!