stratboy Posted February 2, 2015 Share Posted February 2, 2015 Hi! I just noted that in v16011 there's a modules folder inside the override one. Also, in the core Module class there are referencies to that folder. Does it mean that modules php files are finally overridable??? Link to comment Share on other sites More sharing options...
cristic Posted February 2, 2015 Share Posted February 2, 2015 Yes . https://www.prestashop.com/forums/topic/395112-are-we-getting-modules-overrides/ Link to comment Share on other sites More sharing options...
stratboy Posted February 2, 2015 Author Share Posted February 2, 2015 Tears of happyness here.... Link to comment Share on other sites More sharing options...
vekia Posted February 2, 2015 Share Posted February 2, 2015 something still doesnt work there for example, support of hook functions that arent in original .php file Link to comment Share on other sites More sharing options...
stratboy Posted February 2, 2015 Author Share Posted February 2, 2015 @vekia, I'm already using custom hooks: <?php if (!defined('_PS_VERSION_')) exit; class BlockUserInfoOverride extends BlockUserInfo{ public function install(){ return (Module::install() && $this->registerHook('displayTop') && $this->registerHook('displayNav') && $this->registerHook('displayHeader') && $this->registerHook('displayHeaderTools')); } public function hookDisplayHeaderTools($params){ return $this->hookDisplayTop($params); } } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now