Page 1 of 1

Adding "Add comments about your order" to confirmation email

Posted: Tue Apr 03, 2012 10:06 pm
by jdewey
Hey all, I'm running OpenCart version 1.5.1.3 at www.deweyrods.com. In the "Delivery Methods" area of checkout, there is a box that says "Add Comments About Your Order" and I would like to make that field appear on the confirmation email that gets sent to both them and me. Also, can I add another box (or change the title of that box) to say "Firearm Make, Model and Caliber" and I would also like a "Where did you hear about us" Comment Box in checkout. Anyone know where I can find out how to make this?

Thanks, and stay safe out there!

Regards,
K
J. Dewey Mfg.

Re: Adding "Add comments about your order" to confirmation e

Posted: Tue Apr 03, 2012 10:53 pm
by straightlight
Hi,

the comments should already be included within the order confirmation email template upon each checkout process as well as part of the admin orders even with v1.5.1.3 release.

As for changing the title of the comment, it would be in your catalog/language/english/checkout/checkout.php file.

Code: Select all

$_['text_comments']                  = 'Add Comments About Your Order';
As for adding another box to state 'Where did you hear about us', it would first have to be in your view/theme/<your_theme>/template/checkout/payment_method.tpl file.

Re: Adding "Add comments about your order" to confirmation e

Posted: Tue Apr 03, 2012 11:08 pm
by jdewey
It is not on the email, it only shows up in the orders section when i go into the admin area to process them.

Re: Adding "Add comments about your order" to confirmation e

Posted: Wed Apr 04, 2012 1:13 am
by straightlight
Your assumption is correct. There only seem to be the payment gateway's response comment but not the customer's comment over email. Try the XML file on the attachment. This should now output as expected.

Re: Adding "Add comments about your order" to confirmation e

Posted: Wed Apr 04, 2012 10:09 pm
by jdewey
where does that xml file get loaded?

Re: Adding "Add comments about your order" to confirmation e

Posted: Thu Apr 05, 2012 12:22 am
by straightlight
Into your vqmod/xml folder. You must install VQMod to use XML files within OC.

Re: Adding "Add comments about your order" to confirmation e

Posted: Mon Apr 16, 2012 9:18 pm
by jdewey
Is there anyway to do this without the vq mod or whatever, just change the html code?

Re: Adding "Add comments about your order" to confirmation e

Posted: Tue Apr 17, 2012 1:13 am
by straightlight
No, since modifications are also required into PHP. Not just HTML.

Re: Adding "Add comments about your order" to confirmation e

Posted: Fri Apr 20, 2012 9:17 am
by sam.kamal
Hi
I am using version 1.5.2.1
have loaded the .xml accordingly but i still cannot view the expected output.

I would like to add the comments in to the confirmation email.

your help is greatly appreciated.

thanks
Sam

Re: Adding "Add comments about your order" to confirmation e

Posted: Fri Apr 20, 2012 7:15 pm
by straightlight
This looks to be a template issue on your end regarding this integration. Make sure to have: <table class="list"> as the third instance in your mail/order.tpl file in your template and add:

Code: Select all

<?php if (!empty($user_comment)) { ?>
				<table class="list">
					<thead>
						<tr>
							<td class="left"><?php echo $text_user_comment; ?></td>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td class="left"><?php echo $user_comment; ?></td>
						</tr>
					</tbody>
				</table>
			<?php } ?>
Then, to remove the TPL block step from the XML.

Otherwise, you will have to find your own way on integrating this peace.

Re: Adding "Add comments about your order" to confirmation e

Posted: Wed Jun 06, 2012 9:06 pm
by jdewey
Even with the xml file, i'm still not getting the output i want.

Re: Adding "Add comments about your order" to confirmation e

Posted: Tue Jul 10, 2012 8:25 pm
by jdewey
there is a vqmod folder i added it to, but how do i know if vqmod is installed? I'm still not getting the comments.

Re: Adding "Add comments about your order" to confirmation e

Posted: Sun Jul 15, 2012 4:59 am
by straightlight
If you don't know if VQMod is installed, run the VQMod installation again. Then, you will see from the installation status if VQMod is already installed or not.

Re: Adding "Add comments about your order" to confirmation e

Posted: Mon Oct 01, 2012 12:35 am
by mansabbas
i want remove payment method comment box, and place to confirm section...
how can i do this..????

thanks...

Re: Adding "Add comments about your order" to confirmation e

Posted: Wed Oct 03, 2012 9:29 pm
by straightlight
mansabbas wrote:i want remove payment method comment box, and place to confirm section...
how can i do this..????

thanks...
You will need to modify the payment template file and to move it under the confirmation step - still on the checkout template folder.

Re: Adding "Add comments about your order" to confirmation e

Posted: Thu Oct 04, 2012 3:26 pm
by mansabbas
thanks alots..... its working now...

Re: Adding "Add comments about your order" to confirmation e

Posted: Sun Oct 20, 2013 6:59 am
by hirdhird
I fixed the order_user_comments.xml by straightlight to work with version 1.5.6
The commentary is now displayed in a table same as for example payment instructions.
Enjoy...

Re: Adding "Add comments about your order" to confirmation e

Posted: Sun Oct 20, 2013 7:01 am
by hirdhird
I fixed the order_user_comments.xml by straightlight to work with version 1.5.6
The commentary is now displayed in a table same as for example payment instructions.
Enjoy...

Re: Adding "Add comments about your order" to confirmation email

Posted: Wed Jul 10, 2019 1:41 am
by arunasPa
Hello.
I am using OpenCart 2.3.0.2.
I want to add the comments only in 6th step (confirm order).

This is OpenCart 1.5 forum, but I found this post above.

mansabbas wrote:i want remove payment method comment box, and place to confirm section...
how can i do this..????

thanks...
You will need to modify the payment template file and to move it under the confirmation step - still on the checkout template folder.


So should be very similar in OpenCart 2.3.0.2 too. Is not it?

Could anybody explain little bit more please.
Thank you.