Post by jdewey » Tue Apr 03, 2012 10:06 pm

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.

Newbie

Posts

Joined
Mon Mar 19, 2012 9:16 pm

Post by straightlight » Tue Apr 03, 2012 10:53 pm

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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com contractor officials representative


Administrator

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by jdewey » Tue Apr 03, 2012 11:08 pm

It is not on the email, it only shows up in the orders section when i go into the admin area to process them.

Newbie

Posts

Joined
Mon Mar 19, 2012 9:16 pm

Post by straightlight » Wed Apr 04, 2012 1:13 am

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.

Attachments


The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com contractor officials representative


Administrator

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by jdewey » Wed Apr 04, 2012 10:09 pm

where does that xml file get loaded?

Newbie

Posts

Joined
Mon Mar 19, 2012 9:16 pm

Post by straightlight » Thu Apr 05, 2012 12:22 am

Into your vqmod/xml folder. You must install VQMod to use XML files within OC.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com contractor officials representative


Administrator

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by jdewey » Mon Apr 16, 2012 9:18 pm

Is there anyway to do this without the vq mod or whatever, just change the html code?

Newbie

Posts

Joined
Mon Mar 19, 2012 9:16 pm

Post by straightlight » Tue Apr 17, 2012 1:13 am

No, since modifications are also required into PHP. Not just HTML.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com contractor officials representative


Administrator

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by sam.kamal » Fri Apr 20, 2012 9:17 am

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

Newbie

Posts

Joined
Fri Apr 20, 2012 1:41 am

Post by straightlight » Fri Apr 20, 2012 7:15 pm

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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com contractor officials representative


Administrator

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by jdewey » Wed Jun 06, 2012 9:06 pm

Even with the xml file, i'm still not getting the output i want.

Newbie

Posts

Joined
Mon Mar 19, 2012 9:16 pm

Post by jdewey » Tue Jul 10, 2012 8:25 pm

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.

Newbie

Posts

Joined
Mon Mar 19, 2012 9:16 pm

Post by straightlight » Sun Jul 15, 2012 4:59 am

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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com contractor officials representative


Administrator

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by mansabbas » Mon Oct 01, 2012 12:35 am

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

thanks...

User avatar
New member

Posts

Joined
Tue Sep 25, 2012 10:35 pm

Post by straightlight » Wed Oct 03, 2012 9:29 pm

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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com contractor officials representative


Administrator

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by mansabbas » Thu Oct 04, 2012 3:26 pm

thanks alots..... its working now...

User avatar
New member

Posts

Joined
Tue Sep 25, 2012 10:35 pm

Post by hirdhird » Sun Oct 20, 2013 6:59 am

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

Attachments


Newbie

Posts

Joined
Sun Oct 20, 2013 6:53 am

Post by hirdhird » Sun Oct 20, 2013 7:01 am

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

Attachments


Newbie

Posts

Joined
Sun Oct 20, 2013 6:53 am

Post by arunasPa » Wed Jul 10, 2019 1:41 am

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.

Newbie

Posts

Joined
Fri Nov 30, 2018 9:49 pm
Who is online

Users browsing this forum: No registered users and 47 guests