Jump to content

Send additional mail when bought


BenDerBühler

Recommended Posts

Hello PrestaShop-Pro's

 

I am working on a webshop for books. I have 3 variants on each book: Print, Digital and Print&Digital. Now the customer wants that if someone buys a Print or Print&Digital book, an additional mail should be sent to the printing-company. My first thought was an if - else command but I dont know which file I have to change. Does anyone have a solution?

 

Thanks a lot

Link to comment
Share on other sites

You can try do that in send() method in Mail class file 

 

/classes/Mail.php

 

or (recommend to use override class)

/override/classes/Mail.php

 

You can get order id from $templateVars and then check if it is the products that you needs to send a new email.

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