Post by maffe » Fri Nov 29, 2024 3:18 am

We have OpenCart 2.3.0.2, and every time a customer pays with iDEAL (a Dutch payment service), multiple status updates for the order follow, sometimes up to 4 emails in a minute. The customer does not experience this when they choose, for example, bank transfer. Any idea what this could be?

Active Member

Posts

Joined
Sun Jun 12, 2011 5:21 am
Location - Lelystad

Post by paulfeakins » Fri Nov 29, 2024 6:28 pm

maffe wrote:
Fri Nov 29, 2024 3:18 am
We have OpenCart 2.3.0.2, and every time a customer pays with iDEAL (a Dutch payment service), multiple status updates for the order follow, sometimes up to 4 emails in a minute. The customer does not experience this when they choose, for example, bank transfer. Any idea what this could be?
Have you contacted the developer of the iDEAL extension?

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

Post by maffe » Sun Dec 01, 2024 12:30 am

I certainly asked them, but they don't know either. Because, of course, we are the only ones who have this. :(
My question: Which file and/or code determines when a customer receives an email about a status update?
Then we'll remove that code first.

Active Member

Posts

Joined
Sun Jun 12, 2011 5:21 am
Location - Lelystad

Post by OSWorX » Sun Dec 01, 2024 2:03 am

maffe wrote:
Sun Dec 01, 2024 12:30 am
My question: Which file and/or code determines when a customer receives an email about a status update?
../catalog/model/checkout/order.php

And then inside:
public function addOrderHistory(...)

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by maffe » Sun Dec 01, 2024 5:58 am

Hello OSWorX,

I am not a code guru. Please can you explain how to do this? See also this topic viewtopic.php?p=875438 and my answer there.
I want the customer to only receive an email for the completed order and not all the status updates, such as: Payment in progress, payment almost complete, payment successful.

Active Member

Posts

Joined
Sun Jun 12, 2011 5:21 am
Location - Lelystad

Post by OSWorX » Sun Dec 01, 2024 5:10 pm

maffe wrote:
Sun Dec 01, 2024 5:58 am
Hello OSWorX,

I am not a code guru. Please can you explain how to do this? See also this topic viewtopic.php?p=875438 and my answer there.
I want the customer to only receive an email for the completed order and not all the status updates, such as: Payment in progress, payment almost complete, payment successful.
First of all: try to avoid posting the same twice or more times - thank you.
Next, as described hee viewtopic.php?p=554995#p554995 , did you tried that?

And - to clarify your "wish": you don not want that the customer receive an email when he completes the order process?
Only then, when the order status is set to complete?

To explain that a but deeper (also for all of you don't know how the system works).
OpenCart is sending emails (notifications) in following cases:

1. customer complete ordering (via shop) - or admin as customer in shop
2. admin is changing the order status (via administration)
3. admin is adding a new order (via administration)

#1 send always a order email as HTML
#2 are sent only when the checkbox Notify Customer is marked (as plain text)

So, what do you want exactly?

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by maffe » Sun Dec 01, 2024 9:59 pm

Yes, I tried viewtopic.php?p=554995#p554995, but it did not fix our wish.
What I mean is your point 1: When the customer accepts and confirms the order.
This is just before the payment. The email that comes then is okay.
But the emails afterwards with 'Payment is successful' etc. are not okay for us.
But your options 2 and 3 should still be possible.

** edit: This one is also not the solution, i tried that to: https://github.com/mollie/OpenCart/issues/67

Active Member

Posts

Joined
Sun Jun 12, 2011 5:21 am
Location - Lelystad

Post by OSWorX » Sun Dec 01, 2024 10:32 pm

I know the developer of that extension very well.
And he is really helpfull and engaged when it comes to troubles.

It's been a longer time I have installed his extension for customers, so I cannot really remember myself how the notifications are done.
But with all payment methods, whenever the payment gateway responds with a status, then such emails may be triggered.

I recommend to contact the developer of Mollie.
Either directly at GitHub: https://github.com/mollie/OpenCart
Or via the Get Support button at the OC Marketplace: https://www.opencart.com/index.php?rout ... n_id=45453

Seems to me the best - and fastest - option.

Another option can be that you contact the developer you trust and let him check the installation (will require to pay a bit I'm sure ..)

n.b.: please do not post the same in different forums here .. it makes no sense and it complicatesthe work of users want to help you.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by maffe » Fri Jan 03, 2025 5:34 pm

The problem is solved. But first, one thing: it wasn't about Mollie but about iDeal.
In the file: \catalog\controller\extension\payment\idealcheckoutideal.php
There are several lines that end with the value True, which should be False.
ChatGPT helped with this and pointed out which ones they should be :)

Active Member

Posts

Joined
Sun Jun 12, 2011 5:21 am
Location - Lelystad
Who is online

Users browsing this forum: No registered users and 5 guests