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);