Jump to content

Edit History

victorweb

victorweb


more info

On 2/5/2020 at 11:42 AM, fbenoist.com said:

hookAdditionalCustomerFormFields and hookvalidateCustomerFormFields

Hi 

i need add two simple fields to the registration customer form (zipcode and phone_mobile) and save it in ps_customer table , i know i can override CustomerFormatter.php  function getFormat() , or add hookAdditionalCustomerFormFields and hookvalidateCustomerFormFields but i dont know rules for prestashop overrides and where find this hooks or add .. i m trying to find a tutorial for this ..anyone know where can i find it ?? in version prestahop 1.7.7.1 

i think i need these walkthrough :

1- Add fields to form registration

2- validate these fields 

3 - Add these fields to table ps_customer

victorweb

victorweb

On 2/5/2020 at 11:42 AM, fbenoist.com said:

hookAdditionalCustomerFormFields and hookvalidateCustomerFormFields

Hi 

i need add two simple fields to the registration customer form (zipcode and phone_mobile) and save it in ps_customer table , i know i can override CustomerFormatter.php or add hookAdditionalCustomerFormFields and hookvalidateCustomerFormFields but i dont know rules for prestashop overrides and where find this hooks or add .. i m trying to find a tutorial for this ..anyone know where can i find it ?? in version prestahop 1.7.7.1 

i think i need these walkthrough :

1- Add fields to form registration

2- validate these fields 

3 - Add these fields to table ps_customer

×
×
  • Create New...