Totti Posted August 14, 2014 Share Posted August 14, 2014 Hello,I need to intercept every order and check to see if the products contained have a specific code ean.If I find a certain code ean I have to send the email.How can I do?Thank you. Link to comment Share on other sites More sharing options...
bellini13 Posted August 15, 2014 Share Posted August 15, 2014 You can create a module that hooks "newOrder". Essentially that means that your module will be made aware of new orders, and can then apply any logic you would like. Link to comment Share on other sites More sharing options...
Totti Posted August 19, 2014 Author Share Posted August 19, 2014 Thanks for the reply,an example on how to create a form ? Link to comment Share on other sites More sharing options...
bellini13 Posted August 19, 2014 Share Posted August 19, 2014 i assume you mean a new module? take a look at the mailalerts module, it hooks "actionValidateOrder" to send an email when a new order is received. you should be able to use that as an example. 1 Link to comment Share on other sites More sharing options...
Totti Posted August 19, 2014 Author Share Posted August 19, 2014 Thanks ! 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