/** * init * * @return void */ public function init() { parent::init(); if (\XLite\Controller\Customer\Profile::getInstance()->isRegisterMode()) { foreach ($this->tabs as $key => $tab) { if ('profile' != $key) { unset($this->tabs[$key]); } } } }
/** * getTitle * * @return string */ protected function getTitle() { return \XLite\Controller\Customer\Profile::getInstance()->isRegisterMode() ? 'New account' : 'My account'; }