Order confirmation email arrive twice.

If you are runnig Joomla 3.x and Virtuemart 3.x please post to this forum your questions or support tickets about One Page Checkout

Order confirmation email arrive twice.

Postby kovacshazi@.....com » Wed Mar 08, 2023 1:11 pm

When OPC is enabled the Order Confirmation email will be sent twice.
This is not a problem with a Vitruemart normal shopping cart.

What could be the problem?
Joomla4.2.8, VM4.0.12, Rupostel OPC latest
kovacshazi@.....com
 
Posts: 11
Joined: Wed Dec 14, 2016 7:01 pm

Re: Order confirmation email arrive twice.

Postby joomla@.....de » Thu Mar 09, 2023 11:44 am

yes, I have the same problem since I migrated to VM4 and Joomla4. I used the latest release of OPC.

https://www.rupostel.com/phpBB3/viewtopic.php?f=5&t=840&start=0
joomla@.....de
 
Posts: 40
Joined: Thu Jan 31, 2013 8:02 pm

Re: Order confirmation email arrive twice.

Postby joomla@.....de » Thu Mar 09, 2023 5:59 pm

This is probably the cause. The function plgVmConfirmedOrder in components\com_onepage\overrides\cart_override.php is probably executed twice and the mails are used twice. I modified mine and fixed it.

It would be great if Stan also took that into account in the core script. But he seems ill or on vacation, at least no sign of life.
Attachments
mails-send-twice-OPC-2023-03-09.png
mails-send-twice-OPC-2023-03-09.png (83 KiB) Viewed 11775 times
joomla@.....de
 
Posts: 40
Joined: Thu Jan 31, 2013 8:02 pm

Re: Order confirmation email arrive twice.

Postby admin » Fri Jun 23, 2023 12:22 pm

hello, we fixed this in recent opc releases and we do't use the event separation on J4 now. On J2.5 and J3.X we were able to force a specific order of plugin's type's ordering (mainly where system plugins were executed as LAST) but on J4 this is not really possible and thus the order of execution depends purely on when they were included which might be incorrect...

best regards, stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm


Return to One Page Checkout for Virtuemart 3 on Joomla 3.x