HomeBreadcrumb ArrowModulesBreadcrumb ArrowOpenCartBreadcrumb ArrowiSearchBreadcrumb ArrowiSearch shows inactive product...
Thread Solved

iSearch shows inactive products in results

This discussion has been marked as solved
User Image
Aleksandar member
#1 posted on 8/5/13 (edited on 8/5/13)

I just installed the iSearch module and it works great. ***BUT*** there is one problem. The search shows all the items in the database and not just the active items. So its showing my sold items as well as my active items. I need to know if there is a setting to fix this? Or is there a way to hard code it so that it will only show the active items in my store.

Basically I want items to be shown in the search if status=1 AND qty>=1.

0
User Image
Simeon Totev Admin
#2 posted on 8/5/13

Please go to the file: /catalog/model/catalog/isearch.php on lines 154 and 408 add ' AND p.quantity >= 1 ' (without the single quotes) inside of the string after p.status = 1. Mind the empty spaces.

Do not forget to clear the system cache from /system/cache.

0