Miva Merchant 4 Module FAQs » Search Manager (BROK_SEARCH)


{docurl}

Restricting a Search to Particular Categories

Can I restrict the search to particular categories?


This features was added in version 4.41 (uncompiled) and version 4.39 (compiled).

This version of the module will let you restrict the search to particular category(ies).

This is done by adding tokens to the main template. The tokens:

%catrestrict|hidden|catcode|% will restrict the search to the category with the category code "catcode". To restrict the search to more than one category, list multiple category codes for the catcode, separating each by commas (eg. catcode1,catcode2,catcode3). In the alternative, you can have a separate token for each category that you want to restrict the search to.

%catrestrict|checkbox|catcode|% will offer the customer the option to restrict the search to the category with "catcode". Multiples of this token can be used to present multiple checkboxes and the customer can select more than one.

%catrestrict|radio|catcode|% will offer the customer the option to restrict the search to the category with this catcode. However, the option will be displayed as a radio button. If you use multiple of this type of token, the customer will be able to choose only one category to restrict the search to.

%begin_catrestrict%<Select one>|catcode1|catcode2|catcode3|%end_catrestrict% will display a drop down selection list from which the customer can choose a category to restrict the search to. The content between the %begin_catrestrict% and %end_catrestrict% are used to create the drop down list. The first item in that list is the "select one" option and choose it will have NO affect on the search. If you do not want to have a "select one" option simply begin the list with the delimiter |.

Any combination of these can be used at a time. The result would be that the search woudl be restricted to the products which show up in any of the selected categories.



Last update: 2003-07-31 00:34
Author: Support
Revision: 1.0

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

Average rating: 0 out of 5 (0 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry

Records in this category