// Context part 27
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7812 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -59,14 +59,13 @@ class BlockUserInfo extends Module
|
||||
{
|
||||
if (!$this->active)
|
||||
return;
|
||||
$context = Context::getContext();
|
||||
$context->smarty->assign(array(
|
||||
'cart' => $context->cart,
|
||||
'cart_qties' => $context->cart->nbProducts(),
|
||||
'logged' => $context->cookie->isLogged(),
|
||||
'customerName' => ($context->cookie->logged ? $context->customer->firstname.' '.$context->customer->lastname : false),
|
||||
'firstName' => ($context->cookie->logged ? $context->customer->firstname : false),
|
||||
'lastName' => ($context->cookie->logged ? $context->customer->lastname : false),
|
||||
$this->context->smarty->assign(array(
|
||||
'cart' => $this->context->cart,
|
||||
'cart_qties' => $this->context->cart->nbProducts(),
|
||||
'logged' => $this->context->cookie->isLogged(),
|
||||
'customerName' => ($this->context->cookie->logged ? $this->context->customer->firstname.' '.$this->context->customer->lastname : false),
|
||||
'firstName' => ($this->context->cookie->logged ? $this->context->customer->firstname : false),
|
||||
'lastName' => ($this->context->cookie->logged ? $this->context->customer->lastname : false),
|
||||
'order_process' => Configuration::get('PS_ORDER_PROCESS_TYPE') ? 'order-opc' : 'order'
|
||||
));
|
||||
return $this->display(__FILE__, 'blockuserinfo.tpl');
|
||||
@@ -74,8 +73,7 @@ class BlockUserInfo extends Module
|
||||
|
||||
public function hookHeader($params)
|
||||
{
|
||||
$context = Context::getContext();
|
||||
$context->controller->addCSS(($this->_path).'blockuserinfo.css', 'all');
|
||||
$this->context->controller->addCSS(($this->_path).'blockuserinfo.css', 'all');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user