Thursday, June 30, 2022

[FIXED] How to use actionValidateCustomerAddressForm hook to get the address of customer

Issue

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/



Answered By - KoreLewi
Answer Checked By - Cary Denson (PHPFixing Admin)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.