diff --git a/classes/Hook.php b/classes/Hook.php index f88973e7c..a5fbbd35d 100644 --- a/classes/Hook.php +++ b/classes/Hook.php @@ -274,6 +274,7 @@ class HookCore extends ObjectModel // For payment modules, we check that they are available in the contextual country elseif ($frontend) { + $sql->where(Module::getPaypalIgnore()); if (Validate::isLoadedObject($context->country)) $sql->where('(h.name = "displayPayment" AND (SELECT id_country FROM '._DB_PREFIX_.'module_country mc WHERE mc.id_module = m.id_module AND id_country = '.(int)$context->country->id.' LIMIT 1) = '.(int)$context->country->id.')'); if (Validate::isLoadedObject($context->currency)) @@ -286,7 +287,6 @@ class HookCore extends ObjectModel { $sql->leftJoin('module_group', 'mg', 'mg.`id_module` = m.`id_module`'); $sql->where('mg.`id_group` IN ('.implode(', ', $groups).')'); - $sql->where(Module::getPaypalIgnore()); $sql->groupBy('hm.id_hook, hm.id_module'); }