Created
May 10, 2015 08:28
-
-
Save gskema/0adf2da86ff78750d161 to your computer and use it in GitHub Desktop.
Clean method override
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!defined('_PS_VERSION_')) | |
exit; | |
class BlockUserInfoOverride extends BlockUserInfo | |
{ | |
public function hookDisplayTop($params) | |
{ | |
$this->smarty->assign(array( | |
'company_name' => ($this->context->customer->logged ? $this->context->customer->company : false), | |
); | |
return parent::hookDisplayTop($params); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment