Refers only to FiboSearch Pro

How to change the order of search results groups?

This solution works only in the FiboSearch Pro.

Autocomplete suggestions are divided into groups. Eg. product category resutls are higher than products. How to change it?

  1. Create new file asfw-filters.php in the root directory of your child theme
  2. Paste the following code into this file:
<?php

/** -------------------------------------
 *  Custom autocomplete headlines order
 *  ------------------------------------- */
add_filter('dgwt/wcas/search_groups', function($groups){

    $groups['brand']['order'] = 5;
    $groups['product_cat']['order'] = 120;
    $groups['product_tag']['order'] = 20;
    $groups['post']['order'] = 30;
    $groups['page']['order'] = 40;
    $groups['product']['order'] = 100;

    return $groups;
});

3. Change priorities. If you want to display products under categories, change $groups['product']['order'] = 100; to $groups['product']['order'] = 3;.