Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Questions
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
Old September 12th, 2014, 09:26 AM
csauls88 csauls88 is offline
Join Date: Sep 2014
Posts: 19
Default Search box with selectable categories


I am trying to add a large search box to the center of my store page, that would allow the user to select a category (from a drop down menu or check box style) and then type a search for that specific category and be directed to the results in that category.

I am new at this and don't really know how I would set this up
any help would be appreciated
Old September 12th, 2014, 09:54 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
Join Date: Feb 2008
Posts: 16,902


Welcome to the forums!

You need to add a Category List module to the view (or views) where you want your search form to appear.

Then add the following code to your Category List module's theme area ():

HTML Code:
<div class="store_search_form">

  <p class="keyword"><label for="word">Keyword</label> [search.word]</p>
  <p class="category">
    <label for="category">Category</label> 
    <select name="c">
      [category.list before='' after='']
        <option value="[]"><?php echo str_repeat ('-', (($depth-1)*2) ); ?> &nbsp; []</option>
  <p class="button">[search.submit title='Find it!']</p>
That will give you the drop down of categories and a search box and when the submit button is pressed, it will direct the user to your search page. It's not possible to direct to the category page.

Here's more on...

Editing your views:

Here's where I found the code (for your reference):

Hope this helps!

You'll just need to style the above HTML to get the look you want.


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
Search and choose chosen products for categories brinch Questions 1 March 3rd, 2014 07:27 PM
Can I have two search boxes which search different categories? atlantistarget Questions 3 September 6th, 2013 11:56 AM
New Trick: Combine Datafeedr product search with Wordpress posts search dhilditch Tips, Tricks & Tutorials 5 April 18th, 2013 05:58 AM
Search for a product by name in save categories digitalcow Feature Requests 1 January 10th, 2013 02:44 PM
Search page only returning certain categories silverjellybean Problems 5 September 23rd, 2012 06:29 PM

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

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