Jump to content

[SOLVED] Where is the email with the purchase details send?


David Bucur

Recommended Posts

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 by David Bucur (see edit history)
Link to comment
Share on other sites

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

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