What file would we need to edit in order to not return/display any products that don't have any stock when you click a category?
I tried to edit the header in includes/modules/pages/search_result, by doing the following:
$where_str = " WHERE (p.products_status = 1
AND p.products_quantity > 0 <--------------ADDED THIS
AND p.products_id = pd.products_id
AND pd.language_id = :languagesID
AND p.products_id = p2c.products_id
AND p2c.categories_id = c.categories_id ";
However, that doesn't appear to do anything. When I click a category, I am still seeing products load which are out of stock.
Bookmarks