Jump to content

Fix order emails variables


Recommended Posts

Hello, i am working on PS 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? 





Link to comment
Share on other sites

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


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 :


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

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

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