MjV Posted September 13, 2016 Share Posted September 13, 2016 Hi email order_conf template look like this: Hi {firstname} {lastname},Thank you for shopping with {shop_name}! Order details Order: {order_name} , Placed on {date} and customer receive email like this: Hi James johns,Thank you for shopping with GtM2M.COM! Order details Order: 004598 , Placed on {date} instead of the real date formula comes {date}. Does Anyone Know Why formula comes instead of the date, and How To Fix? Best Regards, MjV Link to comment Share on other sites More sharing options...
rocky Posted September 14, 2016 Share Posted September 14, 2016 If your order confirmation email is sent after payment is completed, then it should be the following on line 743 of classes/PaymentModule.php that generates that variable: '{date}' => Tools::displayDate(date('Y-m-d H:i:s'), null, 1), Make sure it exists and hasn't been overridden by override/classes/PaymentModule.php. If you're calling the order confirmation statement from a different order status than usual, then the variable will be created in classes/OrderHistory.php instead. Link to comment Share on other sites More sharing options...
MjV Posted September 15, 2016 Author Share Posted September 15, 2016 If your order confirmation email is sent after payment is completed, then it should be the following on line 743 of classes/PaymentModule.php that generates that variable: '{date}' => Tools::displayDate(date('Y-m-d H:i:s'), null, 1), Make sure it exists and hasn't been overridden by override/classes/PaymentModule.php. If you're calling the order confirmation statement from a different order status than usual, then the variable will be created in classes/OrderHistory.php instead. Hi, thanks for answer, we have payment module (payment with bank card), and this mail sent to customer if customer click on "Cancel" button on payment module gateway (where need to put customer bank card data), if click on cancel button or just close browser window, will get an mail: ____________________________ Hi James johns, Thank you for shopping with GtM2M.COM! Order details Order: 004598 , Placed on {date} If you cant finish payment with bank card, plaese, pay to bank account, invoice is attached _________________________ on line 743 of classes/PaymentModule.php we have same line of code dont have file override/classes/PaymentModule.php or override/classes/order/PaymentModule.php in classes/order/OrderHistory.php dont have any variable like this Link to comment Share on other sites More sharing options...
rocky Posted September 17, 2016 Share Posted September 17, 2016 It would seem your payment module is not written properly (it doesn't even have "please" spelt correctly). You should check the module's code to find out where that email is sent and make sure there is a {date} variable assigned. Link to comment Share on other sites More sharing options...
MjV Posted September 17, 2016 Author Share Posted September 17, 2016 Ok, thanks for support, then we contact to module developer, to check and fix this issue. another question: How to insert new multilingual text to prestashop? for example: I add additional field to contact form, and need to insert multiligual text with name of field. How to do this? how insert multilingual text with formula {l s='Prefered time'} Link to comment Share on other sites More sharing options...
rocky Posted September 17, 2016 Share Posted September 17, 2016 You've already got it right. If it's inside your theme, just use {l s='Preferred time'} and it will be translatable through Localization > Translations > Front Office translations. Link to comment Share on other sites More sharing options...
MjV Posted September 17, 2016 Author Share Posted September 17, 2016 Ok, thanks for support. 1 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