I added $logged variable to smarty like this in order to check if user logged in or not
$this->smarty->assign(array(
'wppopup' => $wppopup,
'logged' => $this->context->customer->isLogged(),
'default_lang' => (int)$this->context->language->id,
'image_width' => Configuration::get('WPPOPUP_IMAGE_WIDTH'),
'image_height' => Configuration::get('WPPOPUP_IMAGE_HEIGHT'),
'id_lang' => $this->context->language->id,
'wppopup_image' => !Configuration::get('WPPOPUP_IMAGE_DISABLE') && file_exists('modules/wppopup/wppopup_image_'.(int)$id_shop.'.jpg'),
'image_path' => $this->_path.'wppopup_image_'.(int)$id_shop.'.jpg'
)
);
But when i use it {if $logged}
in the template file it returns empty. Other variables work well.
Is there sth that is missing ?