Hello everyone,
I'm trying to modify the advanced search by creating dropdownmenu's. In all the files I looked (html_output.php, tpl_advacned_search_default.php) I found DrByte's name, so if he (or anyone else) could help me, it would be great.
I want to create a dropdown which i hard-code by hand. it doesn't have to get something out of databases, so I just need to know how to create a dropdown menu within ZenCart, but at this time I can't seem to get it to work.
I found a dropdown which I would like to edit, but don't know where to begin. Could anyone give me some kind of "template" how to insert my own values and names?
PHP Code:
<fieldset class="floatingBox back">
<legend><?php echo ENTRY_CATEGORIES; ?></legend>
<div class="floatLeft"><?php echo zen_draw_pull_down_menu('categories_id', zen_get_categories(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES)), '0' ,'', '1'), $sData['categories_id']); ?></div>
<?php echo zen_draw_checkbox_field('inc_subcat', '1', $sData['inc_subcat'], 'id="inc-subcat"'); ?><label class="checkboxLabel" for="inc-subcat"><?php echo ENTRY_INCLUDE_SUBCATEGORIES; ?></label>
<br class="clearBoth" />
</fieldset>
THE GOAL I'D LIKE TO REACH:
What I intend to do is create dropdown menu's with, for example:
dropdown 1) Nike, adidas, puma
dropdown 2) walking, running, climbing
dropdown 3) cheap, expensive, normal
The things that people choose I would like to put in a normal searchfield next to eachother, so that for example in the search field it says: Nike Walking expensive and then I search on that.
In my products I would have a number of shoes that have that exact text in their description.
Could you Please Help me?
Thanks in advance!
DMR
Bookmarks