ilario Posted February 16, 2015 Share Posted February 16, 2015 helloI 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 muchilario Link to comment Share on other sites More sharing options...
fred-vinapresta Posted February 16, 2015 Share Posted February 16, 2015 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. Link to comment Share on other sites More sharing options...
ilario Posted February 16, 2015 Author Share Posted February 16, 2015 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 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