jantasingh Posted September 11, 2014 Share Posted September 11, 2014 Hi, I can see the topic of removing help button from PS 1.5.6 Version http://www.prestashop.com/forums/topic/295865-solved-how-remove-help-button-from-administrator-page-on-ps156/ Cant find how to remove in in PS 1.6 version. Please advise how you can remove the help button from the admin panel. thanks. Link to comment Share on other sites More sharing options...
vekia Posted September 12, 2014 Share Posted September 12, 2014 you can easily do it in bulk go to /classes/controller/AdminController.php and comment out (or remove) this line: $this->context->smarty->assign('help_link', 'http://help.prestashop.com/'.$this->context->language->iso_code.'/doc/'.Tools::getValue('controller').'?version='._PS_VERSION_.'&country='.$this->context->country->iso_code); Link to comment Share on other sites More sharing options...
lnlau Posted December 18, 2014 Share Posted December 18, 2014 Hi vekia, If I comment out the line as you mentioned on AdminController.php, will I still be able to update for any version release? Will it be override? Thanks. Link to comment Share on other sites More sharing options...
bellini13 Posted December 18, 2014 Share Posted December 18, 2014 In Vekia's approach, it is not an override, but an edit to the core class, so you can still upgrade, but you will lose this change. But that is an easy change to reapply after an upgrade. You can attempt to do this change via an override of the 'initPageHeaderToolbar' function in the AdminController class. This allows the core function to execute and add the help link, but then you remove it before the page renders. public function initPageHeaderToolbar() { parent::initPageHeaderToolbar(); $this->context->smarty->clear_assign('help_link'); } Link to comment Share on other sites More sharing options...
lnlau Posted December 19, 2014 Share Posted December 19, 2014 Thanks bellini13, it works like a charm. Link to comment Share on other sites More sharing options...
Recommended Posts