Wasseem Khayrattee Posted July 15, 2013 Share Posted July 15, 2013 I'm just on my 2nd day with the code base of prestashop and I need to modify {payment} in Order Confirmation Email. I want to change the name of a specific payment method to something else (a more descriptive name) Prestashop version: 1.4.x Target: Order Confirmation Email In the B.O, this can be found here: Tools > Translations > Modify translations > E-mail template > Core e-mails > order_conf.html But I need to be able to manipulate the variable {payment} in there. Anyone knows where this variable is handled in the code? Link to comment Share on other sites More sharing options...
Alex Simonchik BelVG Posted July 15, 2013 Share Posted July 15, 2013 Hi, you can change data in {payment} with override method PaymentModule::validateOrder() Regards 1 Link to comment Share on other sites More sharing options...
Wasseem Khayrattee Posted July 15, 2013 Author Share Posted July 15, 2013 Awesome, I found the variable in PaymentModule::validateOrder() // Send an e-mail to customer '{payment}' => Tools::substr($order->payment, 0, 32) Link to comment Share on other sites More sharing options...
Julius Andre Posted July 15, 2013 Share Posted July 15, 2013 Hello: To me I get the client name instead of the method of payment, in the mail messages. How I can fix it? Thank you Link to comment Share on other sites More sharing options...
Wasseem Khayrattee Posted July 16, 2013 Author Share Posted July 16, 2013 (edited) Hello: To me I get the client name instead of the method of payment, in the mail messages. How I can fix it? Thank you Did you modify anything in the code? If no, I think in your B.O you might have set the client name for the placeholder for your payment method's name..? Edited July 16, 2013 by 7php.com (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts