Ok had some issues with the free carrot products showing in advanced search results! this wasnt horrible until a customer decided to hit add to cart and it went in from the listing. so the goal was to stop carrots from showing in search, hopefully this will help someone with the same issue.
in includes/modules/pages/advanced_search_results/header_php.php
around 212 look for
$select_str = "SELECT DISTINCT " . $select_column_list .
" m.manufacturers_id, p.products_id, pd.products_name, p.products_price,p.products_retail,p.products_quantity, p.products_tax_class_id, p.products_price_sorter, p.products_qty_box_status, p.master_categories_id ";
add p.products_carrot
like
$select_str = "SELECT DISTINCT " . $select_column_list .
" m.manufacturers_id, p.products_id, pd.products_name, p.products_price,p.products_retail,p.products_quantity, p.products_tax_class_id, p.products_price_sorter, p.products_qty_box_status, p.master_categories_id,p.products_carrot ";
** around line 252**
$where_str = " WHERE (p.products_status = 1
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 ";
add AND p.products_carrot = 0
like
$where_str = " WHERE (p.products_status = 1
AND p.products_carrot = 0
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 ";
this seemed to work like a champ :)
Never be afraid to try something new, remember that amateurs built the ark, professionals built the Titanic