PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, June 30, 2022

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

 June 30, 2022     prestashop, prestashop-1.6, prestashop-1.7, prestashop-helper-classes, prestashop-modules     No comments   

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)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

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

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing