HaCos Posted November 21, 2014 Share Posted November 21, 2014 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 Link to comment Share on other sites More sharing options...
gonebdg - webindoshop.com Posted November 23, 2014 Share Posted November 23, 2014 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 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