Post by Zanato » Mon Sep 26, 2016 1:11 am

I'm getting customer comments listed twice in the admin email. Once with nl2br applied and once without.

Seems to be caused by line 669,
$data['comment'] = nl2br($comment) . '<br/><br/>' . $order_info['comment']; ,
in catalog/model/checkout/order.php

Code: Select all

if ($comment) {
						if ($order_info['comment']) {
							$data['comment'] = nl2br($comment) . '<br/><br/>' . $order_info['comment']; 
						} else {
							$data['comment'] = nl2br($comment);
						}
					} else {
						if ($order_info['comment']) {
							$data['comment'] = $order_info['comment'];
						} else {
							$data['comment'] = '';
						}
					}
I've searched but can't find this bug listed anywhere which I'm very surprised at.

New member

Posts

Joined
Fri Oct 04, 2013 4:58 am
Location - Dublin, Ireland
Who is online

Users browsing this forum: No registered users and 6 guests