VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: randomdev on October 03, 2012, 04:31:11 AM

Title: VM 2.0.6 Order Email notification problem
Post by: randomdev on October 03, 2012, 04:31:11 AM
I cant upgrade virtuemart as previous developers have modified core files.

For some reason customers are not being emailed when their order is made/confirmed? Can anyone tell me how to fix this? (I am using the virtuemart paypal plugin)
Attached is a screenshot from the backend showing the order has been confirmed but for some reason no email is sent to the administrator or the customer? (If possible I would also like to send emails for pending orders)

I can confirm that email is working as if I modify the order in the backend with notify customer ticked I get the emails on both customer and admin emails.

Any ideas where I should look to fix this?

[attachment cleanup by admin]
Title: Re: VM 2.0.6 Order Email notification problem
Post by: bytelord on October 03, 2012, 05:26:40 AM
Hi,

I am not sure about version 2.0.6 because is old and many fixes has been applied to the core from then (as some new features).
The option you are searching for is under Configuration -> Checkout -> Default Order Status to send an invoice, select when you want to send the invoice/mail (confirmed on your example).
I am not sure in 2.0.6 let you choose for than one states of the order. Also that option can be overridden by the payment methods you have configure, so take a look also in your payments configuration pane.

btw, you should ask the previous developer for the changes that made to the core, if this is impossible then you could download vm 2.0.6 and compare the core files with the existing you have to see the changes that have been made (not the templates, the core files).

Regards
Title: Re: VM 2.0.6 Order Email notification problem
Post by: randomdev on October 03, 2012, 05:32:31 AM
Unfortunately the configuration option you mention is not available in this version :/

I couldnt see anything in the payment methods for email notification either.

It seems strange that it wouldnt send an email by default even in version 2.0.6 which makes me think it might be a problem with the paypal plugin
Title: Re: VM 2.0.6 Order Email notification problem
Post by: bytelord on October 03, 2012, 08:56:08 AM
Hi,
It could be, because is override it. You could download the current paypal plugin and check for changes ...
If you create a standard payment plugin, just for testing, it is working?

Regards
Title: Re: VM 2.0.6 Order Email notification problem
Post by: randomdev on October 03, 2012, 09:03:27 AM
With standard payment it does send an email.

I thought about using latest plugin but I figured it wouldnt work properly with 2.0.6 version of virtuemart?
Title: Re: VM 2.0.6 Order Email notification problem
Post by: bytelord on October 03, 2012, 09:08:53 AM
Hello,

it will work. But first backup (using akebaa is a good option).
Title: Re: VM 2.0.6 Order Email notification problem
Post by: randomdev on October 03, 2012, 09:11:00 AM
Wouldnt the new plugin need the settings for email notifications that are missing from 2.0.6?
Title: Re: VM 2.0.6 Order Email notification problem
Post by: bytelord on October 03, 2012, 09:13:30 AM
didn't miss any mail configuration ... this happen on the plugin core, send's the mail.
Title: Re: VM 2.0.6 Order Email notification problem
Post by: randomdev on October 03, 2012, 09:20:42 AM
What is the best way to install the plugin? Just download the vm 2.0.10 aio and copy the paypal folder over the old one?
Title: Re: VM 2.0.6 Order Email notification problem
Post by: randomdev on October 03, 2012, 09:29:19 AM
I believe the latest plugin is installed, up the top it states the following:

PAYPAL
     Warning - In VM2, the vendor and buyer will ONLY receive an email when the transaction is complete. ?

Does the same problem occur in 2.0.10?
Title: Re: VM 2.0.6 Order Email notification problem
Post by: randomdev on October 03, 2012, 09:35:01 AM
With the new plugin I get the following in the log file:
2012-10-03 07:31:44
message: plgVmConfirmedOrder order number: d95e047

But when I check the order in back end all I see is:
Date Added    Shopper Notified?    Status    Comment
Wednesday, 03 October 2012 15:31    No   Pending

So it doesnt email customer and now it is not confirming payment also ?
Title: Re: VM 2.0.6 Order Email notification problem
Post by: jenkinhill on October 03, 2012, 10:33:05 AM
It needs to work with the updated code in VM2.0.10 where you can select the payment status for invoicing. I think there are further improvements in the upcoming VM2.0.12

Also see http://forum.virtuemart.net/index.php?topic=96541.0
Title: Re: VM 2.0.6 Order Email notification problem
Post by: randomdev on October 03, 2012, 10:42:59 AM
Unforunately I cant update, is there any easy hack just to get an email notification sent once paypal confirms payment?
Title: Re: VM 2.0.6 Order Email notification problem
Post by: randomdev on October 04, 2012, 04:16:22 AM
I made a little bit of progress:

In the paypal plugin folder editing paypal.ini
I changed this: return $this->processConfirmedOrderPaymentResponse(2, $cart, $order, $html, $dbValues['payment_name'], $new_status);
to this: return $this->processConfirmedOrderPaymentResponse(1, $cart, $order, $html, $dbValues['payment_name'], $new_status);

I now get a email on confirmed order.. the problem is the order also gets a blank status update which sends out an email with no order status (on this email instead of a subject there is COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_, however on the confirmed email it shows the correct order information in the subject)

In the backend it displays the history like this:
Date Added                                 Shopper Notified?    Status    Comment
Thursday, 04 October 2012 10:05    No                         Pending   
Thursday, 04 October 2012 10:05    Yes      
Thursday, 04 October 2012 10:06    Yes                        Confirmed   Your payment for order f85a055 has been confirmed by Paypal

Does anyone know how I can stop the blank status update?
Title: Re: VM 2.0.6 Order Email notification problem
Post by: randomdev on October 09, 2012, 09:11:08 AM
If anyone has the same problem, I sumhow fixed it by reinstalling 2.0.6 aio