Jump to content

Modification formulaire


Recommended Posts

Bonjour !

 

Je galère un peu... je souhaite juste modifier un peu le formulaire d'inscription mais je ne trouve pas la solution...

Je souhaite supprimer la date anniversaire et rendre le champ société obligatoire.

Quelqu'un pourrait m'aider ?

 

D'avance merci

 

PS : je suis sous presta 1.5.5.0

Link to comment
Share on other sites

Pour la création du fichier d'override je pense que tu trouveras ton bonheur sur le net...

Pour son contenu il faut récupérer la fonction "protected function processSubmitAccount()"

 

Ensuite il faut commenter ces 2 lignes : (en rajoutant 2 slash)

//if (!Validate::isBirthDate($customer->birthday))
//                    $this->errors[] = Tools::displayError('Invalid date of birth.');

 

Pour la société il faut rajouter une condition (en dessous des ligne du birthday) du style

if( empty(Tools::getValue('company')) ){

   $this->errors[] = Tools::displayError('Société obligatoire.');

}

Edited by frederic.m (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...