Post by bchenoweth » Mon Mar 10, 2025 10:56 pm

I have tried searching for how to fix this issue but can only find references to versions older than mine and the fixes do not work. I am running 3.0.3.8 and when a customer submits notes it is not included in their email order confirmation. What can I check to make this work? I believe it should be including this automatically but it is not.

Thank you for your help!

Newbie

Posts

Joined
Tue Mar 27, 2012 10:20 am

Post by ADD Creative » Tue Mar 11, 2025 12:01 am

A long standing issue. https://github.com/opencart/opencart/pull/94

For your version. Near.
https://github.com/opencart/opencart/bl ... #L117-L121

Add something like.

Code: Select all

if ($order_info['comment']) {
			$data['customer_comment'] = nl2br($order_info['comment']);
		} else {
			$data['customer_comment'] = '';
		}
Then in your catalog/view/theme/default/template/mail/order_add.twig template duplicate the following but use 'customer_comment' in place of 'comment'.
https://github.com/opencart/opencart/bl ... ig#L38-L51

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by paulfeakins » Tue Mar 11, 2025 7:03 pm

This seems to be the solution so I will mark this as [SOLVED].

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: No registered users and 26 guests