Page 1 of 1

Order confirmation email arrive twice.

PostPosted: Wed Mar 08, 2023 1:11 pm
by kovacshazi@.....com
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

Re: Order confirmation email arrive twice.

PostPosted: Thu Mar 09, 2023 11:44 am
by joomla@.....de
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

Re: Order confirmation email arrive twice.

PostPosted: Thu Mar 09, 2023 5:59 pm
by joomla@.....de
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.

Re: Order confirmation email arrive twice.

PostPosted: Fri Jun 23, 2023 12:22 pm
by admin
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