Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Tips, Tricks & Tutorials
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old October 8th, 2012, 03:35 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default Add a category drop down menu to the Advanced Search

Here's how to add a drop down menu with your categories to the Advanced Search widget.

1. Go here: The Factory > Your Store > VIEWS > WIDGETS > Advanced Search

2. Delete the Text module that already is in the view.

3. Add a new Category list module to the view.

4. Add the following code to the Category list module:

HTML Code:
[search.form]
<div class="store_search_form">

	<p class="keyword"><label for="word">Keyword</label> [search.word]</p>
	
	<p class="merchant"><label for="merchant">Merchant</label> [search.merchant]</p>
	
	<p class="tag"><label for="tags">Tags</label> [search.tags]</p>
	
	<p class="price"><label for="price">Price</label> [search.selectprice options='any, cheap(-5), $5 - $10, $10 - $20, more than 20 (20+)']</p>
	
	<p class="category">
		<label for="category">Category</label> 
		<select name="c">
			[category.list before='' after='']
				<option value="[category.id]"><?php echo str_repeat ('-', (($depth-1)*2) ); ?> &nbsp; [category.name]</option>
				[category.repeat]
			[/category.list]
		</select>
	</p>
	
	<p class="button">[search.submit title='Find it!']</p>
	
</div>
[/search.form]
5. Save.

After you click the [Update Settings Only] button on your site, your Advanced Search widget will now have a drop down menu containing your categories.

Eric
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change width of drop down menu fsuggest Questions 4 April 29th, 2012 10:40 AM
Need help on Drop down Menu for Brand filter jdrom Questions 3 March 29th, 2012 07:17 PM
Best way for drop dawn main menu? barbinec Questions 1 February 8th, 2012 08:42 AM
drop down menu Papada Questions 1 January 4th, 2012 02:24 PM
No drop down menu in new factory marcaustin Problems 15 March 10th, 2011 02:36 PM


All times are GMT -5. The time now is 01:01 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.