Jump to content

Email template comes with error


MjV

Recommended Posts

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

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

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

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

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