How to use actionValidateCustomerAddressForm hook to get the address of customer

608 Views Asked by At

How to use actionValidateCustomerAddressForm, during runtime of address update details

1

There are 1 best solutions below

0
KoreLewi On BEST ANSWER

In the actionValidateCustomerAddressForm you will get the whole address form as parameter.

public function hookActionValidateCustomerAddressForm($params){
   $addressForm = $params['form'];
   // do the stuff
}

Of course, you can use the hook only in a module. For generating a basic custom module, check the https://validator.prestashop.com/