From 02c04a9884ac2835a57b2da4d2f1e33963b9b379 Mon Sep 17 00:00:00 2001 From: Daniele Giachino Date: Tue, 5 Nov 2013 09:40:53 +0100 Subject: [PATCH] In multistore, layered filters about categories are not loading the category name from the proper shop --- modules/blocklayered/blocklayered.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/blocklayered/blocklayered.php b/modules/blocklayered/blocklayered.php index 3d2039ed9..fb46a2580 100644 --- a/modules/blocklayered/blocklayered.php +++ b/modules/blocklayered/blocklayered.php @@ -2657,7 +2657,7 @@ class BlockLayered extends Module AND '.$alias.'.active = 1 AND '.$alias.'.`visibility` IN ("both", "catalog")'; $sql_query['group'] = ') count_products FROM '._DB_PREFIX_.'category c - LEFT JOIN '._DB_PREFIX_.'category_lang cl ON (cl.id_category = c.id_category AND cl.id_lang = '.$id_lang.') + LEFT JOIN '._DB_PREFIX_.'category_lang cl ON (cl.id_category = c.id_category AND cl.`id_shop` = '.(int)Context::getContext()->shop->id.' and cl.id_lang = '.$id_lang.') WHERE c.nleft > '.(int)$parent->nleft.' AND c.nright < '.(int)$parent->nright.' '.($depth ? 'AND c.level_depth <= '.($parent->level_depth+(int)$depth) : '').'