David Bucur Posted April 28, 2014 Share Posted April 28, 2014 (edited) Hi, I need to modify the system in order to put a random code which is generated when a user buys a deal. Therefore I need to generate the code and send it in the email sent to the customer. I am trying to find where is the controller that puts the info in that email template but I haven't found anything. Edited April 29, 2014 by David Bucur (see edit history) Link to comment Share on other sites More sharing options...
David Bucur Posted April 29, 2014 Author Share Posted April 29, 2014 I found the answer myself. The email that is sent to the customer can be found in mails/en/order_conf.html The class that handles that email is in classes/PaymentModule.php and the method to override is validateOrder Now for the owner of the shop you will have to have the Mail Alerts module installed and the template is in modules/mailalerts/mails/en/new_order.html and the class that handles this is in: modules/mailalerts/mailalerts.php and the method hookActionValidateOrder If someone needs some help contact me and I'll see if I can help you. 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