diff --git a/themes/default-bootstrap/header.tpl b/themes/default-bootstrap/header.tpl
index 6fc22eade..534b39605 100644
--- a/themes/default-bootstrap/header.tpl
+++ b/themes/default-bootstrap/header.tpl
@@ -61,6 +61,7 @@
var priceDisplayPrecision = {$priceDisplayPrecision*$currency->decimals};
var priceDisplayMethod = {$priceDisplay};
var roundMode = {$roundMode};
+ var isUserLogged = {if $logged}true{else}false{/if};
diff --git a/themes/default/header.tpl b/themes/default/header.tpl
index db8b2c8eb..1a2712f58 100644
--- a/themes/default/header.tpl
+++ b/themes/default/header.tpl
@@ -50,6 +50,7 @@
var priceDisplayPrecision = {$priceDisplayPrecision*$currency->decimals};
var priceDisplayMethod = {$priceDisplay};
var roundMode = {$roundMode};
+ var isUserLogged = {if $logged}true{else}false{/if};
{if isset($css_files)}
{foreach from=$css_files key=css_uri item=media}