Jump to content

Fix order emails variables


HaCos
 Share

Recommended Posts

Hello, i am working on PS 1.6.0.9 and i am using 4 payment options.

I mentioned that the email thats being sent to a customer after the order punchuation, has different values depending on checkout gateway.

eg: If i select COD with fee, subtotal is culcuated correclty but if i select dank deposit with same products, shipping etc.. , for the same email template, subtotal shows price with tax.

 

Who is the controller responsible to find variables & sent email to client? 

 

Regards,

C

 

Share this post


Link to post
Share on other sites

Each Payment module should have a controller to validate order. This controller can be found on :

/modules/YOUR_PAYMENT_MODULE/controllers/front/validation.php

To validate order, the payment module will use this method :

$this->module->validateOrder(... params goes here ...)

The validateOrder method is defined within the classes file which can be found on :

/classes/PaymentModule.php

public function validateOrder(... params goes here ...)

This class method is responsible to validate order, determine variable and send email

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More