Joey Posted March 8, 2018 Share Posted March 8, 2018 Hi, in the step 3 of checkout page there is this field: "If you would like to add a comment about your order, please write it in the field below." I'd like that the value of this field be present in the order confirmation email (order_conf.html). What code do I have to insert in order_conf.html? I tried message, order_message, order_customer_comment also not work, pls advise which name I should use to capture the comment. Thanks <span style="color:#777"> <span style="color:#333"><strong>Order:</strong></span> {order_name}<br /><br /> <span style="color:#333"><strong>Date:</strong></span> {date}<br /><br /> <span style="color:#333"><strong>Payment:</strong></span> {payment}<br /><br /> <span style="color:#333"><strong>Customer Comment:</strong></span> {message}<br /><br /> </span> Thanks in advance. Link to comment Share on other sites More sharing options...
nsweb Posted March 12, 2018 Share Posted March 12, 2018 variable with message does not passed to email template. you have to do it somewhere in your code $order = new Order($id_order); $message = $order->getFirstMessage(); Link to comment Share on other sites More sharing options...
Joey Posted March 12, 2018 Author Share Posted March 12, 2018 Thanks for your advise, I will try to put above code in my code for this purpose. Thanks! ^^ 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