Making the 'quick search' feature search by 'all of these words'

In default CS-Cart quick search searches by any of these words.

To make the 'quick search' feature search by 'all of these words':

  1. Open the search_products.php file located in the include/common directory of your CS-Cart installation.
  2. Find and replace the following part of code there:
    $search_data['match'] = (!empty($match)) ? $match : 'any'; // any, all, exact

    with this one:
    $search_data['match'] = (!empty($match)) ? $match : 'all'; // any, all, exact
  3. Save the file.

Noticed an error in the article or it is not clear enough? Any suggestions to improve it? Please let us know by filling in the feedback form. Click here.