Miva Merchant 4 Module FAQs » Search Manager (BROK_SEARCH)


I have a static search form. Is there any way to force the results to be sorted in a particular way?

(2003/10/31) yes, add a field to the form:

<input type="hidden" name="BrokSearch_sort" VALUE="name|up" />

to your form. This one will sort by name upwards. You can extrapolate the other values by the type and direction. For example, to sort by code downwards, you would use:

<input type="hidden" name="BrokSearch_sort" VALUE="name|down" />

The other values are:

name|up - sorts by name alphabetically upwards
name|down - sorts by name alphabetically downwards
code|up - sorts by product code alphabetically upwards
code|down - sorts by product code alphabetically downwards
id|up - sorts by product id numerically upwards
id|down - sorts by product id numerically downwards
order|up - sorts by admin order upwards
order|down - sorts by admin order downwards

Last update: 2005-01-12 08:44
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 (3 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry

Records in this category