Miva Merchant 4 Module FAQs » Search Manager (BROK_SEARCH)


{docurl}

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

Print this record Send FAQ to a friend Show this as PDF file
Please rate this FAQ:

Average rating: 2 out of 5 (4 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry

Records in this category