Alfonso Catron Posted February 25, 2011 Share Posted February 25, 2011 Hi, I'm trying to modify the autentication.tpl and php files to allow users to select the group at regsitration.We have 2 groups, 'Retailers', wich it the Default group, and 'Wholesalers'.I've added a dropdown menu so the user can select if he/she is a retailer or a wholesaler.But I can't pass the new group to the database so the user actually gets the group.I'm adding $customer->addGroups($group_id);Is that the function I have to call?I'm not sure how to do it, and where should I put the function call.Could someone help me with this?thanks!! Link to comment Share on other sites More sharing options...
Alfonso Catron Posted February 28, 2011 Author Share Posted February 28, 2011 is there no easy way to do this?I'll continue testing this week, If I can find a solution I'll post it here.thanks! Link to comment Share on other sites More sharing options...
rudd Posted March 28, 2011 Share Posted March 28, 2011 Hi,Did you find a solution to the registration options.?Furthermore, I think if it was a wholesaler selection there should be an option to check the details and approve before they can login if wholesaler.Look forward to you your solution if one has been found & implemented. Link to comment Share on other sites More sharing options...
darqor Posted May 18, 2011 Share Posted May 18, 2011 i would be interested in this thing as well, cos now we have to do this mannually..... Link to comment Share on other sites More sharing options...
darqor Posted May 19, 2011 Share Posted May 19, 2011 I`ve added the extra line in the authentication.tpl ( a check box ) that the customer can check if she/he is a technician or not... made an extra column in the databese... but now i am stuck... donno what to do to make it work how you were writing above.anyone? some help???Thx Link to comment Share on other sites More sharing options...
nicetazmenia Posted May 20, 2011 Share Posted May 20, 2011 I am not quite a programmer, that is why I have my programmer created a module for my project for a shopping cart that need a wholesale account sign-up and login.But from my understanding of Prestashop, if you modify the authentication.tpl, you also need to modify the authentication.php to post the variable to the database.That is my 2cent of information I hope this is helpful.But here is the concept of a wholesale account (not sure if this the same to other country) but in US we have follow guideline for wholesale customer.1. Create a way for the customer to signup as a wholesale (I would recommend a separate signup form which you can duplicate the authentication.tpl and authentication.php name it like authentication_whole.tpl and php.I know there will be other file involve which you might need to look into, such as the myaccount.php etc. you will be able to see it in the authentication.tpl and authentication.php 2. Once they submit the form, you to let them know it will review and will send them an email once the account is approve3. In the back office, you move that customer to the wholesale group of you can create a module that will automatically put them in that group once you approved it. (This where I hired a programmer to do it for me)Now I have that module and I can use it on my next project and of course with the permission of my programmer to use it again for other project.Good luck guys! 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