How do I Change the Search Function in the cart?
Posted by Michael G.K on 30 August 2008 04:56 AM

By default IXXO Cart uses the "OR" boolean function in its search. If you want to change it to "AND," you can do so by making the following changes to the engine_functions.php page.

You will need the source code to make these changes.

content/engine/engine_functions.php

line # 511 (or near that)

 function parseSearchKeywords($search_str = '', &$objects) {
define("ADVANCED_SEARCH_DEFAULT_OPERATOR", "or");

replace or with

 function parseSearchKeywords($search_str = '', &$objects) {
define("ADVANCED_SEARCH_DEFAULT_OPERATOR", "and");

(140 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).