Petter B Posted October 7, 2014 Share Posted October 7, 2014 Is the only way to add a customer to a group to do it manually, one customer at the time? For example, I would like to restrict new customers to a certain payment method. Can a customer add them self to a group by filling in a field, or buying a product or something? Link to comment Share on other sites More sharing options...
bellini13 Posted October 8, 2014 Share Posted October 8, 2014 It needs to be done via a module, or by altering the core code. I have a module called "Customer Group Registration" which allows the customer to select which group they want to belong too during registration. If you have some business rule that you want to apply that would automate this (perhaps the email domain, or some other registration field), then you can create a module that would apply that business logic. If that is something you are interested in pursuing, send me a PM and we can discuss those details. Link to comment Share on other sites More sharing options...
PascalVG Posted October 10, 2014 Share Posted October 10, 2014 Should the change to a group be 'instantly' when he/she buys a product (or something like that), or could you just 'scan regularly' for if the customer bought it? If it could be a 'regular update of people who did this or that', you could make a cron job and see if customers comply to those rules you set and move the customer to a different group. For example, - check every hour/day/xx for new customers who bought in total for more than 100$, and if they do, move them to group 'big buyers'. - check every hour/day/xx for new customers who bought products of category 'Books', and if they do, move them to group 'Book lovers'. - check every hour/day/xx for customers who are currently in group 'Books' who bought books during the last week, and if they do, move them to group 'Frequent Book buyers'. etc. Check first if your host allows cron jobs, and if so, there are some posts about how to set up cron jobs on the forum. If you need help with the SQL, let us know, and we can try to find a solution. Please describe your requirements for moving to another group. My 2 cents, pascal. 1 Link to comment Share on other sites More sharing options...
PascalVG Posted October 10, 2014 Share Posted October 10, 2014 (You could also do this check 'instantly', after order confirmation for just that customer, but that needs, as Bellini mentioned, some more advanced coding, probably by creating a small module.) Link to comment Share on other sites More sharing options...
Petter B Posted October 12, 2014 Author Share Posted October 12, 2014 Thanks for the good and informative answers, now when I know the possibilities, I just have to figure out how I would want it to work. Link to comment Share on other sites More sharing options...
Ableson Posted October 19, 2014 Share Posted October 19, 2014 Check first if your host allows cron jobs, and if so, there are some posts about how to set up cron jobs on the forum. If you need help with the SQL, let us know, and we can try to find a solution. Please describe your requirements for moving to another group. My 2 cents, pascal. If your server doesn't have adequate Cron, you can use online cron job service like https://www.easycron.com. Link to comment Share on other sites More sharing options...
Rekha Posted June 28, 2015 Share Posted June 28, 2015 I have a customer group which is identified by email id [email protected], ie, when the email id of the registering customer has the domain @corpo.com, the customer has to be added to a customer group CORPORATE. When a customer is registering at 7:10 pm, suppose I run a cron job every hour, at 8pm the customer should be moved to the group CORPORATE and be able to place an order for products restricted to group CORPORATE. I have installed the module Crontab manager. What should the cron program/ script url be? I do not know programming, so you will have to tell me exactly what to do. Must I create a .php file with the scrip? Where should the file be located for Prestashop 1.6? Is the file location the cron url? What should the script be? 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