Jump to content

product order send email


ilario

Recommended Posts

hello
I would like to send an email after an order, if the goods of an order there are belonging to a category.

I know little php,

I thought of putting the chosen categories (taken from db table) in a variable.
make a loop between the products and compare, if the result is true, exit loop and send your email.

I can help out please ...

thank you very much
ilario

Link to comment
Share on other sites

Hi, you can override the PaymentModule.php class where the email is sent and add a condition in the validateOrder function. you can add a loop inside to check if products ot he the order belong to a category.

 

I thank you for the answer

you'd be able to do it for a fee?

 

just a clarification, I send an email to those most in that the customer already receives the order, which simply contains a link to an HTML page to fill out a form

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