From 2ff12372ce7a3b4ac8035c4e9d943674e8557ac6 Mon Sep 17 00:00:00 2001 From: xdaguet Date: Tue, 30 Aug 2016 17:34:25 +0200 Subject: [PATCH] forge ticket NM-814 crossselling shows products with visibility = none --- crossselling.php | 1 + 1 file changed, 1 insertion(+) diff --git a/crossselling.php b/crossselling.php index 432cbe7..c65a4d0 100755 --- a/crossselling.php +++ b/crossselling.php @@ -174,6 +174,7 @@ protected function getOrderProducts(array $products_id) AND od.product_id NOT IN ('.$list_product_ids.') AND i.cover = 1 AND product_shop.active = 1 + AND p.visibility <> "none" '.(Group::isFeatureActive() ? $sql_groups_where : '').' ORDER BY RAND() LIMIT '.(int)Configuration::get('CROSSSELLING_NBR'));