Jump to content

Mail Alert to admin on order except for 1 customers' group


Jaguaro

Recommended Posts

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

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

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...