I am using opencart 2.3.0.2
Hoping I could get some help:
Customers are receiving 2 x order confirmation emails. (Same order number) the actual orders are not duplicated on admin.
Admin order alert emails are fine. It's just the customer order email confirmation which is sending twice.
Any ideas which file I need to check?
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Ok an update: Apart from me being stupid, i've realised, The customer email gets 1 x confirmation and admin gets a EXACT COPY of the customer email (As well as the normal admin order alert mail)
So the customer gets 1 x order confirmation email
Admin gets 2 emails. (1 admin order alert + 1 Exact copy of the customer email)
NO idea why the customer email copy is being sent to admin as in Settings/mail/Additional Alert Mail is BLANK
Apart from installing a Product import/export extension, everything is opencart standard.
I'm using journal 3 theme but my understanding is, this does not usually mess with mail settings or files.
When customer orders, they get one email and I get two of the identical order recipt.
Any idea what is wrong?
Code: Select all
<modification>
<name>Customer order confirmation email for store owner</name>
<version>1.0.1</version>
<code>coceadmin_fabius_oc3</code>
<link>mailto:ronca--@gmail.com</link>
<author>Fabius and Morty</author>
<file path="catalog/controller/mail/order.php">
<operation>
<search index="0"><![CDATA[$data['text_footer'] = $language->get('text_footer');]]></search>
<add position="after"><![CDATA[$data['text_comment'] = $language->get('text_comment');]]></add>
</operation>
<operation>
<search><![CDATA[if ($order_info['payment_address_format']) {]]></search>
<add position="before"><![CDATA[if($order_info['comment']) $data['comment'] .= "<br /><br /><strong>". $data['text_comment'] . "</strong><br />" . strip_tags($order_info['comment']);]]></add>
</operation>
<operation>
<search index="0"><![CDATA[$mail->send();]]></search>
<add position="after"><![CDATA[
$mail->setTo($this->config->get('config_email'));
$mail->send();
]]></add>
</operation>
<operation>
<search><![CDATA[public function alert(&$route, &$args) {]]></search>
<add position="after"><![CDATA[return;]]></add>
</operation>
<operation>
<search><![CDATA[$data['ip'] = $order_info['ip'];]]></search>
<add position="replace"><![CDATA[]]></add>
</operation>
</file>
</modification>
I am using English OpenCart 3.0.3.8, Default Template/Theme, php 7.4, Latest Brave Browser (No Ads-Blocker, etc.)
You could email "Fabius and Morty" their email is in there.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
This extension use to work fine, I have this problem as soon as I moved to a new server last week. Also most of the email system has issue and my captcha v3 stopped working.
I transferred it by transferring all the files and database from old to new server. Then created the same email addresses, but appareately there is another step to configure the spf etc as I am using a web based email service to send and receive emails.
Also in my dashboard >> Recent section I see the same order apearing twice in a few seconds apart but they have one order number.
I am using English OpenCart 3.0.3.8, Default Template/Theme, php 7.4, Latest Brave Browser (No Ads-Blocker, etc.)
That would suggest that you are getting multiple addOrderHistory events. Check your events and also check both the PHP and OpenCart error logs.parkookk wrote: ↑Fri Aug 02, 2024 8:41 pmThanks Paul,
This extension use to work fine, I have this problem as soon as I moved to a new server last week. Also most of the email system has issue and my captcha v3 stopped working.
I transferred it by transferring all the files and database from old to new server. Then created the same email addresses, but appareately there is another step to configure the spf etc as I am using a web based email service to send and receive emails.
Also in my dashboard >> Recent section I see the same order apearing twice in a few seconds apart but they have one order number.
This is a much better CAPTCHA anyway: https://www.opencart.com/index.php?rout ... er=antropy
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Thanks, do you think its my reCaptcha extension?paulfeakins wrote: ↑Mon Aug 05, 2024 6:33 pmThis is a much better CAPTCHA anyway: https://www.opencart.com/index.php?rout ... er=antropy
I am using English OpenCart 3.0.3.8, Default Template/Theme, php 7.4, Latest Brave Browser (No Ads-Blocker, etc.)
Thanks, I have so many of "d_validator" in my "admin > extensions > events" that in database their Trigger path is admin/view/extension/.ADD Creative wrote: ↑Fri Aug 02, 2024 9:45 pmThat would suggest that you are getting multiple addOrderHistory events. Check your events and also check both the PHP and OpenCart error logs.parkookk wrote: ↑Fri Aug 02, 2024 8:41 pmThanks Paul,
This extension use to work fine, I have this problem as soon as I moved to a new server last week. Also most of the email system has issue and my captcha v3 stopped working.
I transferred it by transferring all the files and database from old to new server. Then created the same email addresses, but appareately there is another step to configure the spf etc as I am using a web based email service to send and receive emails.
Also in my dashboard >> Recent section I see the same order apearing twice in a few seconds apart but they have one order number.
And in my opencart directory the "extension" directory is not in the "view" folder.
And their action path is the same for all; again d_shopunity or d_validator directories don't exist in my OC: extension/d_shopunity/d_validator/view
I am using English OpenCart 3.0.3.8, Default Template/Theme, php 7.4, Latest Brave Browser (No Ads-Blocker, etc.)
If the trigger path start with admin it not going to affect orders on the catalog side.parkookk wrote: ↑Fri Sep 27, 2024 11:02 pmThanks, I have so many of "d_validator" in my "admin > extensions > events" that in database their Trigger path is admin/view/extension/.
And in my opencart directory the "extension" directory is not in the "view" folder.
And their action path is the same for all; again d_shopunity or d_validator directories don't exist in my OC: extension/d_shopunity/d_validator/view
I am using English OpenCart 3.0.3.8, Default Template/Theme, php 7.4, Latest Brave Browser (No Ads-Blocker, etc.)
The triggers to look for in oc_event are "catalog/model/checkout/order/addOrderHistory/before". By default there should be event/activity/addOrderHistory, mail/order and mail/order/alert actions. Also "catalog/model/checkout/order/addOrderHistory/after" which should have an event/statistics/addOrderHistory action. You could also check the actions haven't been modified by a modification.
Code: Select all
SELECT * FROM `oc_event`
WHERE `trigger` IN (
'catalog/model/checkout/order/addOrderHistory/before',
'catalog/model/checkout/order/addOrderHistory/after'
);
Code: Select all
DELETE FROM `oc_event`
WHERE `code` LIKE 'd_validator%'
OR `code` LIKE 'd_shopunity%';
I am using English OpenCart 3.0.3.8, Default Template/Theme, php 7.4, Latest Brave Browser (No Ads-Blocker, etc.)
If all is now working, could you add [SOLVED] to the start of this topic title?
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
You can find the solution here: viewtopic.php?p=873884
.
I am using English OpenCart 3.0.3.8, Default Template/Theme, php 7.4, Latest Brave Browser (No Ads-Blocker, etc.)
Users browsing this forum: No registered users and 63 guests