Jump to content

Missing hook actionSubmitAccountBefore on the page /order


Peter_17

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...