hugoromor Posted May 31, 2017 Share Posted May 31, 2017 (edited) How is hookDisplayCarrierList used? I've tried the following in PS 1.7 but nothing happens on the page of carrier selection: public function hookDisplayCarrierList() { return "Test"; } ! $this->registerHook( 'displayCarrierList' ) Edited May 31, 2017 by hugoromor (see edit history) Link to comment Share on other sites More sharing options...
Nishith Nesdiya Posted May 31, 2017 Share Posted May 31, 2017 How is hookDisplayCarrierList used? I've tried the following in PS 1.7 but nothing happens on the page of carrier selection: public function hookDisplayCarrierList() { return "Test"; } ! $this->registerHook( 'displayCarrierList' ) Hi.. where is use this hook your custom module ? Thanks Link to comment Share on other sites More sharing options...
hugoromor Posted May 31, 2017 Author Share Posted May 31, 2017 Inside class MyModuleShipping extends Module { } Link to comment Share on other sites More sharing options...
Nishith Nesdiya Posted May 31, 2017 Share Posted May 31, 2017 (edited) Inside class MyModuleShipping extends Module { } Hi.. then you need register hook in module install method and use the module function like as class MyModuleShipping extends Module { public function install() { return parent::install() && $this->registerHook('displayCarrierList'); } public function hookDisplayCarrierList() { return "Test"; } } Thanks Edited May 31, 2017 by Nishith (see edit history) Link to comment Share on other sites More sharing options...
hugoromor Posted May 31, 2017 Author Share Posted May 31, 2017 I did, I forgot to mention that I'm using prestashop 1.7 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