Jaguaro Posted August 27, 2014 Share Posted August 27, 2014 Hi, I would like to customize Prestashop 1.6 in a way that allows to: - send automatic mails to an admin / vendor when a order is placed - except when 1 specific customers' group places orders (this specific customers' group refers to our Point of Sale System, which does not require manual order management). At the moment I can use Mail Alert but I can't block a customers' group. Any advice? Thanks in advance. C Link to comment Share on other sites More sharing options...
bellini13 Posted August 27, 2014 Share Posted August 27, 2014 just need to customize your mailalerts module so it first looks at the customers group before it sends the email. If you are looking to hire someone to do this, feel free to send me a PM or contact me via my website Link to comment Share on other sites More sharing options...
Jaguaro Posted August 27, 2014 Author Share Posted August 27, 2014 Hi Bellini, thanks for your answer. Since my budget is very low I was considering to try to do the mod myself. Any advice? Link to comment Share on other sites More sharing options...
bellini13 Posted August 27, 2014 Share Posted August 27, 2014 edit mailalerts.php and search for the function hookActionValidateOrder. This is where the module will detect a new order and send the email. Inside this function you will find the customer object variable, you should be able to use this to locate the customers group, and then return false if the customer is in the POS group. Link to comment Share on other sites More sharing options...
Jaguaro Posted August 28, 2014 Author Share Posted August 28, 2014 Thank you! In the weekend I'll try. If I have problems I'll ask for your help 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