
Originally Posted by
magneteye
I tried to copy the manufacturers_id for a pull down, but it didn't work. I am thinking cause that code works differently. It pulls the manufacturers names form a table that is populated by the admin.
yes, that works differently, although there are similarities.

Originally Posted by
magneteye
I just want to do it myself one time with 6 values. I haven't been able to get a working pull down yet. and no one has yet to have answers for me on this forum.

Somewhere in the top of your product type's collect_info.php script, put something like this:
Code:
$my_list_of_options = array();
$my_list_of_options[] = array('id' => 'Name of option 1', 'text' => 'Name of option 1');
$my_list_of_options[] = array('id' => 'Name of option 2', 'text' => 'Name of option 2');
$my_list_of_options[] = array('id' => 'Name of option 3', 'text' => 'Name of option 3');
$my_list_of_options[] = array('id' => 'Name of option 4', 'text' => 'Name of option 4');
$my_list_of_options[] = array('id' => 'Name of option 5', 'text' => 'Name of option 5');
$my_list_of_options[] = array('id' => 'Name of option 6', 'text' => 'Name of option 6');
Note the duplication of description in both the id and text sides.
Then, later where you want the pulldown to display, echo something like this:
Code:
zen_draw_pull_down_menu('my_selected_option_from_database', $my_list_of_options, $pInfo->my_selected_option_from_database)
where my_selected_option_from_database refers to the name of the database field which is storing the value selected, and which you've already retrieved earlier in the script.
Bookmarks