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.
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. :unsure:
Somewhere in the top of your product type's collect_info.php script, put something like this:```
$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');
Then, later where you want the pulldown to display, echo something like this:
zen_draw_pull_down_menu('my_selected_option_from_database', $my_list_of_options, $pInfo->my_selected_option_from_database)
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.