Forums / General Questions / drop down menu for choices

drop down menu for choices

Views: 567

Results 1 to 2 of 2
16 Feb 2014, 8:19 AM
#1
bn17311 avatar

bn17311

Zen Follower

Join Date:
Apr 2010
Posts:
319
Plugin Contributions:
0

drop down menu for choices

hi,
i have this code where i type 1 or 0 into but would like to make it a drop down for 1 or 0 to make it easier and less chance of mistakes

echo '<p>1 for Sync 0 for no Sync<br /><strong>' . PWA_SYNCME . '</strong>'.zen_draw_input_field('syncme').'</p>'."\n";

i see in the code zen_draw_pull_down_menu but dont know how to use with above,

any help appreciated
thanks
bn

16 Feb 2014, 9:09 AM
#2
bn17311 avatar

bn17311

Zen Follower

Join Date:
Apr 2010
Posts:
319
Plugin Contributions:
0

Re: drop down menu for choices

now sorted

found help on this thread

http://www.zen-cart.com/showthread.php?202942-Question-with-zen_draw_pull_down_menu&highlight=zen_draw_pull_down_menu

but ended up using a checkbox since i wass only using 0 or 1

echo '<p>Tick if you want this Attribute Qty Synced with Product Qty<br /><strong>' . PWA_SYNCME . '</strong>' . zen_draw_checkbox_field('syncme', '1');