Post by AM786 » Sat Jul 07, 2018 3:50 am

Hi,

We're receiving duplicate order comments in our order emails. How can this be corrected?

New member

Posts

Joined
Sat Jul 07, 2018 3:49 am

Post by straightlight » Sat Jul 07, 2018 10:24 pm

As a new forum user, please read the forum rules.

- No OC version posted
- Vague information posted

What does your first post really describes in order to gather information on how to solved the issue? More information is needed.

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.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

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

Post by AM786 » Sat Jul 07, 2018 11:50 pm

v2.3.0.2

New member

Posts

Joined
Sat Jul 07, 2018 3:49 am

Post by AM786 » Sat Jul 07, 2018 11:54 pm

Another issue

jquery-2.1.1.min.js [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.

v2.3.0.2

Just seeing if these problems have occurred with others and if a solution exists.

New member

Posts

Joined
Sat Jul 07, 2018 3:49 am

Post by straightlight » Sun Jul 08, 2018 12:52 am

Your jQuery version is outdated. As described on the error message, it is deprecated and needs to be upgraded.

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.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

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

Post by AM786 » Sun Jul 08, 2018 1:34 am

Tried updating jQuery to 3.3.1 but no luck

Attachments

Screen Shot 2018-07-07 at 1.31.11 PM.png

Screen Shot 2018-07-07 at 1.31.11 PM.png (18.35 KiB) Viewed 298 times


New member

Posts

Joined
Sat Jul 07, 2018 3:49 am

Post by straightlight » Sun Jul 08, 2018 2:03 am

An extension may be using older codes. Uninstall each extensions until this error vanishes.

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.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

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

Post by AM786 » Sun Jul 08, 2018 2:42 am

I was able to find the extension and sent an email to the Developer for a solution. Thanks.

Now about this other problem. The comments are shown twice for orders in the emails we receive about the order. Do you think this is also because of an extension?

New member

Posts

Joined
Sat Jul 07, 2018 3:49 am

Post by straightlight » Sun Jul 08, 2018 2:58 am

As instructed on the above, uninstall each extensions until the issue gets rectified, this time, with the order comments.

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.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

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

Post by AM786 » Sun Jul 08, 2018 3:10 am

Thanks for your help man, I sincerely appreciate it :)

New member

Posts

Joined
Sat Jul 07, 2018 3:49 am

Post by AM786 » Tue Feb 19, 2019 7:08 am

I found an entry in catalog/model/checkout/order.php which seems to be astray

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'] = '';
						}
					}
Specifically

Code: Select all

$data['comment'] = nl2br($comment) . '<br/><br/>' . $order_info['comment'];
I see two posts for comment, which is why I am seeing double, right?

New member

Posts

Joined
Sat Jul 07, 2018 3:49 am

Post by straightlight » Tue Feb 19, 2019 10:29 pm

Using an old OC version. The if statement with the $comment or $order_info['comment'] has been fixed since quite sometime now.

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.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

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

Users browsing this forum: No registered users and 13 guests