Search code examples
prestashopprestashop-1.6prestashop-1.7prestashop-modulesprestashop-helper-classes

How to use actionValidateCustomerAddressForm hook to get the address of customer


How to use actionValidateCustomerAddressForm, during runtime of address update details


Solution

  • 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/