From eb0d2d47e4d3dcb5f9bf7a45c64538fea13ecc13 Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Fri, 9 Aug 2013 17:31:00 +0200 Subject: [PATCH] // The blunder wasn't mine :) --- modules/blocklayered/blocklayered.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/blocklayered/blocklayered.php b/modules/blocklayered/blocklayered.php index cf1aed3ad..bede78501 100644 --- a/modules/blocklayered/blocklayered.php +++ b/modules/blocklayered/blocklayered.php @@ -2197,7 +2197,11 @@ class BlockLayered extends Module if ($id_parent == 1) return false; - $query_filters_where = ' AND product_shop.`active` = 1 AND product_shop.`visibility` IN ("both", "catalog")'; + $alias_where = 'p'; + if (version_compare(_PS_VERSION_,'1.5','>')) + $alias_where = 'product_shop'; + + $query_filters_where = ' AND '.$alias_where.'.`active` = 1 AND '.$alias_where.'.`visibility` IN ("both", "catalog")'; $query_filters_from = ''; $parent = new Category((int)$id_parent);