donaldlloyds Posted January 22, 2010 Share Posted January 22, 2010 bonjour, avez vous vue passer un module ou une fonction permettant que le client lors de son inscription choisi un groupe "pariculier" & "entreprise" (par exemple)merci d avance pour votre aide Link to comment Share on other sites More sharing options...
olea Posted January 22, 2010 Share Posted January 22, 2010 Regarde le module customerRegistration Link to comment Share on other sites More sharing options...
donaldlloyds Posted January 22, 2010 Author Share Posted January 22, 2010 merci mais si j ai bien compris ce module necessite de valider un compte apres son inscription donc au final ca revien a changer manuellement le groupe de l utilisateur.je cherche juste que lors de la creation du compte des case cocher permette d attribuer un groupe Link to comment Share on other sites More sharing options...
Yoya Posted January 22, 2010 Share Posted January 22, 2010 Donaldlloyld ... la "recherche" est ton amie ! http://www.prestashop.com/forums/viewthread/36370/developpement_et_modules/choisir_son_groupe_a_linscription_resolu Link to comment Share on other sites More sharing options...
donaldlloyds Posted January 22, 2010 Author Share Posted January 22, 2010 Donaldlloyld ... la "recherche" est ton amie ! http://www.prestashop.com/forums/viewthread/36370/developpement_et_modules/choisir_son_groupe_a_linscription_resolu merci beaucoup yoya !!!!!plus facile quand on a participer au premiers sujet %-P Link to comment Share on other sites More sharing options...
donaldlloyds Posted January 22, 2010 Author Share Posted January 22, 2010 bon alors j ai inseré a l fin de authentification.tpl Vous êtes <input type=“radio” name=“id_group” id=“id_group6” value=“6” {if isset($smarty.post.id_group) && $smarty.post.id_group 6}checked="checked"{/if} /> Enseignant <input type="radio" name="id_group" id="id_group7" value="7" {if isset($smarty.post.id_group) && $smarty.post.id_group 7}checked=“checked”{/if} /> Elève/étudiant <input type=“radio” name=“id_group” id=“id_group8” value=“8” {if isset($smarty.post.id_group) && $smarty.post.id_group == 8}checked=“checked”{/if} /> Particulier pis j ai modifié le code présent a la ligne _86 de authentification.php en remplaçant par $customer->active = 1; if (!$customer->add()) // retour à la case départ ... $errors[] = Tools::displayError('an error occurred while creating your account'); else { if(Tools::getValue('id_group',1)!=1) // on ajoute çà ... { $tmpGroup= new Group(); $tmpGroup->id=Tools::getValue('id_group',1); $customer->addGroups($tmpGroup); } IMPOSSIBLE DE TROUVER customer.add ????????? Link to comment Share on other sites More sharing options...
donaldlloyds Posted January 25, 2010 Author Share Posted January 25, 2010 quelqu un pour me guider ? merci d avance Link to comment Share on other sites More sharing options...
Yoya Posted January 25, 2010 Share Posted January 25, 2010 2- Modifier Customer.add() (class Customer.php) : Link to comment Share on other sites More sharing options...
donaldlloyds Posted January 25, 2010 Author Share Posted January 25, 2010 IMPOSSIBLE DE TROUVER customer.add ????????? Link to comment Share on other sites More sharing options...
Yoya Posted January 25, 2010 Share Posted January 25, 2010 ta pas de fonction add() dans Customer.php ? Link to comment Share on other sites More sharing options...
donaldlloyds Posted January 25, 2010 Author Share Posted January 25, 2010 ta pas de fonction add() dans Customer.php ? je n arrive pas a trouver ce fichier customer.php :red: Link to comment Share on other sites More sharing options...
bugg Posted March 8, 2010 Share Posted March 8, 2010 bonjour,quand vous rentrez: $customer->active = 1; if (!$customer->add()) // retour à la case départ ... $errors[] = Tools::displayError('an error occurred while creating your account'); else { if(Tools::getValue('id_group',1)!=1) // on ajoute çà ... { $tmpGroup= new Group(); $tmpGroup->id=Tools::getValue('id_group',1); $customer->addGroups($tmpGroup); } quelles lignes vous remplacez ( de où à oà ?)car quand mon client termine son inscription, il arrive sur 1 page blanche (authentification.php), j'ai donc dû me planter quelque part.merci de votre aide (c'est assez urgent) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now