Hi,
You can create a menu which is not listing the products of these categories and use it in the settings of the hikashop product search plugin. It will potentially require a little management in the categories tree to have something like:
- Main category
-- Sub category A
-- Sub category B
- Not wanted in search
And create a menu listing the product of the "Main category" and it sub categories, then use this id in the plugin settings.
Or you can use code like:
foreach($rows as $k => $row){
if(in_array($row->product_category_id,array('XX','YY'))){
unset($rows[$k]);
}
}
Just before:
Replace "XX" and "YY" by the ids of the undesired categories.