From ed5266d64b4d78e6f93a243cc2495ca226cec5a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dr=C3=BFSs?= Date: Fri, 22 Feb 2013 14:12:24 +0100 Subject: [PATCH] [-] Core: ProductSale no more takes products with no visibility Fixed bug that's ProductSale is taking products with no visibility, displaying them in module blockbestsellers. But as they have no visibility, we don't want to display them! --- classes/ProductSale.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/ProductSale.php b/classes/ProductSale.php index b5f9d0253..4ff4d9fe2 100644 --- a/classes/ProductSale.php +++ b/classes/ProductSale.php @@ -98,6 +98,7 @@ class ProductSaleCore LEFT JOIN `'._DB_PREFIX_.'tax` t ON (t.`id_tax` = tr.`id_tax`) '.Product::sqlStock('p').' WHERE product_shop.`active` = 1 + AND p.`visibility` != \'none\' AND p.`id_product` IN ( SELECT cp.`id_product` FROM `'._DB_PREFIX_.'category_group` cg @@ -150,6 +151,7 @@ class ProductSaleCore ON cl.`id_category` = product_shop.`id_category_default` AND cl.`id_lang` = '.(int)$id_lang.Shop::addSqlRestrictionOnLang('cl').' WHERE product_shop.`active` = 1 + AND p.`visibility` != \'none\' AND p.`id_product` IN ( SELECT cp.`id_product` FROM `'._DB_PREFIX_.'category_group` cg