I know that you can search one particular category in a static search form, but how would I go about searching multiple categories?
(2003/11/11)I don't know how you're currently doing it so it is difficult to explain exactly how you would want to go about it. If you're currently using a hidden field in your form:
<input type="hidden" name="CategoryRestrict" value="cat1" />
Then you can restrict to multiple categories by simply adding those into the field, concatenating with a comma:
<input type="hidden" name="CategoryRestrict" value="cat1,cat2" />
You can also have multiple fields that have the same field name. Miva will concatenate them together with commas. I.e. this will work to give the customer the option to restrict to one,both, or neither of the categories:
<input type="checkbox" name="CategoryRestrict" value="cat1" /> Category 1
<input type="checkbox" name="CategoryRestrict" value="cat2" /> Category 2
Last update: 2005-01-12 08:40
Author: Support
Revision: 1.0
You cannot comment on this entry
Most Recent FAQ Entries: 
- When adding a product to the basket from an ... (2008-08-27 19:02)
- I have the module configured to add the key ... (2008-08-13 14:50)
- What is the format for the htaccess file if ... (2008-08-12 14:50)
- Is there any way to look up a customer's ... (2008-08-06 18:04)
- I am looking for a module that will allow ... (2008-08-06 18:00)
Top 10 
- 2853 views:
Adding Tokens to Evaluate Expressions - 2785 views:
Is there a way to "Limit" the number of ... - 2729 views:
Why won't you call me for technical support? I ... - 2619 views:
Are license keys valid for more than one store? ... - 2512 views:
I'm trying to enter a license key and get ... - 2498 views:
How do I install a module? - 2349 views:
How do I check for a module upgrade? - 2316 views:
How can display and change the parameters of an ... - 2164 views:
The total on my checkout pages are not correct. ... - 1976 views:
I have select and radio type attributes in my ...
















