diff --git a/classes/Tools.php b/classes/Tools.php index 2f3c275d2..a4f8752b3 100644 --- a/classes/Tools.php +++ b/classes/Tools.php @@ -140,8 +140,7 @@ class ToolsCore */ public static function getShopProtocol() { - $id_shop = Context::getContext()->shop()->id; - $protocol = (Configuration::get('PS_SSL_ENABLED', null, null, $id_shop) || (!empty($_SERVER['HTTPS']) + $protocol = (Configuration::get('PS_SSL_ENABLED') || (!empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) != 'off')) ? 'https://' : 'http://'; return $protocol; }