boxybh28 Posted July 28, 2016 Share Posted July 28, 2016 public function hookDisplayCustomerAccountForm($params) { return $this->display(__FILE__, 'aa.tpl'); } public function hookDisplayCustomerAccountFormTop($params) { return $this->display(__FILE__, 'aa.tpl'); } public function install() { if ( !parent::install() || !$this->registerHook ( array ( 'displayHeader', 'displayCustomerAccountForm', 'displayCustomerAccountFormTop', 'actionCustomerAccountAdd', 'additionalCustomerFormFields', ) ) ) { return false; } } 'displayCustomerAccountForm' 'displayCustomerAccountFormTop' 'actionCustomerAccountAdd', well in the module if we hook the above these are not working at all?? a simple text to be displayed in a tpl. I tried to make it to make a log fine in hook itself but it seems it is not reading these as if they are disabled .... Link to comment Share on other sites More sharing options...
Krystian Podemski Posted July 29, 2016 Share Posted July 29, 2016 I suggest you to check current state of template files: https://github.com/PrestaShop/PrestaShop/tree/develop/themes/classic/templates/customer As you can see many of these hooks are not yet available. Feel free to make Pull Requests here: https://github.com/PrestaShop/PrestaShop and add hooks which you want to have. More informations about contributing code to PrestaShop: http://doc.prestashop.com/display/PS16/Contributing+code+to+PrestaShop 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