Peter_17 Posted February 21 Share Posted February 21 Hello, I guess that hook actionSubmitAccountBefore should be available on the page /order, the same way as is on the page /registration. I found a module that checks user First Name and Surname before registration and block spam account creation. This module uses hook actionSubmitAccountBefore and perfectly works on the /registration page and fails on the /order page. I check I can attach this module to hook actionCustomerAccountAdd but it's to late (account is already created when the hook is called). I tried to use the hook alias actionBeforeSubmitAccount but it does not work too. My prestashop is 8.1.3. And my public functions: public function hookActionSubmitAccountBefore() { if ( $this->checkAllConditions() === false ) { return false; } else { return true; } } public function hookActionBeforeSubmitAccount() { if ( $this->checkAllConditions() === false ) { return false; } else { return true; } } How should I check if really hook actionSubmitAccountBefore is missing on the /order page? Maybe this hook does not return errors on the /order page? Maybe I should use another hook? Thanks for help Link to comment Share on other sites More sharing options...
metacreo Posted October 7 Share Posted October 7 Confirmation. PS 8.2.0 Hook actionSubmitAccountBefore not firing on order page. 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