If you wish to remove the categories and/or subcategories from the search form, you can do so by changing the following values in your shop configuration.
In your shop configuration, change these values to “No” to remove categories and/or subcategories (removing categories automatically removes subcategories).
xsearchdisplaycategories |
Setting this to Yes displays the highest level categories on the search form. |
By default, the search only looks in the cname, cdescription and ccode fields of the product record for the customer’s keywords. You can change this in the shop configuration.
xsearchfields |
A comma-delimited list of fields in the product record that should be searched. Default is cname,cdescription,ccode. |
If you want to allow customers to search for items by price, setting the following option in your Software Configuration will display fields to allow this.
Xsearchbyprice |
Setting this to Yes adds low and high price search fields to the search form. |
To allow your customers to sort their search results, set the following Software Configuration Options.
Xsearchsortfields |
A comma-delimited list of fields from the products table that you want to allow customers to sort by. For example - name,cprice,ccode. |
xsearchsortcaptions |
A comma-delimited list of captions for the sort fields specified above. For example - Name, Price, Product code. |
Note: The two variables above must both have the same number of items in the list – you must enter a caption for each field or you may get errors on your search page.
Note: Access and SQL Server do not allow sorting by memo/text fields, so sort by cdescription or extendedesc is not allowed.