Author Topic: [SOLVED] Duplicate orders & payments  (Read 28377 times)

amanche

  • Beginner
  • *
  • Posts: 6
Re: [SOLVED] Duplicate orders & payments
« Reply #105 on: August 31, 2014, 23:49:32 pm »
All this happened after update to VM 2.6.8. It seems that for each order there is one email send for order status PENDING by default!?

Any ideas?


Hi,

did you remove Pending in Configuration-Checkout Settings from "Default Order Status to send email to shopper" too?

Regards Achim

padalec

  • Jr. Member
  • **
  • Posts: 55
Re: [SOLVED] Duplicate orders & payments
« Reply #106 on: September 01, 2014, 08:11:18 am »
Amanche:

Yes I removed. See screenshot of my settings:


[attachment cleanup by admin]

padalec

  • Jr. Member
  • **
  • Posts: 55
Re: [SOLVED] Duplicate orders & payments
« Reply #107 on: September 01, 2014, 17:24:52 pm »
Don't know if this is the case for all here

For me I found that component InteraMind - VirtueMart Email Manager 3.1.1 is probably causing this bug.

I updated from: 2.6.8. to VM VirtueMart 2.6.8b.  The bug for duplicated email orders disappeared.

Then I went to COMPONENTS  -> VM EMAIL MANAGER and there this error was displayed:

Email Manager's code is not installed properly in VirtueMart file: /home/bctvstage/public_html/components/com_virtuemart/helpers/shopfunctionsf.php
Please check the directory and file permissions and try to re-install the component.
The component will not work properly until you fix this problem!

So I reinstalled the component InteraMind - VirtueMart Email Manager 3.1.1 and tested ... And here I have DUPLICATED emails again.

I see that EMail manager is overwriting the file: shopfuntionsf.php ( and making some backups - see image)

I will report also to Intermind support and I will post solutions here (if possible)

bye

[attachment cleanup by admin]

hotrod

  • Jr. Member
  • **
  • Posts: 104
  • Silver Supporting Member
Re: [SOLVED] Duplicate orders & payments
« Reply #108 on: September 18, 2014, 00:50:42 am »
I'm still fine..  no double orders since installing the 2.6.8..
VirtueMart 2.6.8 (Patched 9/18)
Joomla 2.5.22
PHP Version    5.4.32 
Dedicated Server.
Proud Virtuemart Supporter http://forum.virtuemart.net/index.php?topic=124355.0

adriespo

  • Beginner
  • *
  • Posts: 31
    • Adriano Esposito
  • Skype Name: adriano.esposito
Re: [SOLVED] Duplicate orders & payments
« Reply #109 on: September 25, 2014, 20:16:31 pm »
With Joomla! 2.5.25 and VirtueMart 2.6.10 I receive duplicate order e-mails but the strange it is that the first mail has payment and shipment informations blank, the second is pretty good. So indeed the second mail is not just a duplicate but it is the correct version. Where I should check to see what happens?

adriespo

  • Beginner
  • *
  • Posts: 31
    • Adriano Esposito
  • Skype Name: adriano.esposito
Re: [SOLVED] Duplicate orders & payments
« Reply #110 on: September 26, 2014, 16:35:38 pm »
Because of the empty shipment and payment of the first mails of the twin I managed inserting this code:

Code: [Select]
if(empty($shipment_name) || empty($payment_name)){
return false;
}

in \administrator\components\com_virtuemart\models\orders.php

I still dont know why the shopFunctionsF::renderMail function is called two times per order but at least now I have not the duplicate mails...


Balazs

  • Beginner
  • *
  • Posts: 3
Re: [SOLVED] Duplicate orders & payments
« Reply #111 on: September 30, 2014, 12:50:59 pm »
adriespo, same issue here!

Where do I have to paste your code in orders.php?

I have pasted the code just below the comment:

Code: [Select]
// Send the email

if(empty($shipment_name) || empty($payment_name)){
return false;
}

$res = shopFunctionsF::renderMail('invoice', $order['details']['BT']->email, $vars, null,$vars['doVendor'],$this->useDefaultEmailOrderStatus);

Thanks!

Joomla 2.5.8 and Virtuemart 2.6.10

adriespo

  • Beginner
  • *
  • Posts: 31
    • Adriano Esposito
  • Skype Name: adriano.esposito
Re: [SOLVED] Duplicate orders & payments
« Reply #112 on: September 30, 2014, 13:33:59 pm »
Yeah, sorry, a bit tired when I wrote  ;D

Indeed you must check this before call renderMail.

Thank you!

EDIT: beware that it is a core hack, so you probably lose it after an update

mahon

  • Beginner
  • *
  • Posts: 1
Re: [SOLVED] Duplicate orders & payments
« Reply #113 on: October 03, 2014, 09:44:07 am »
I had the same problem.

Thank you for solving! :)