VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: BigAlStorm on January 16, 2013, 23:06:32 PM

Title: No New Order Confirmation Email
Post by: BigAlStorm on January 16, 2013, 23:06:32 PM
Hi All

I have searched the forums for a solution and still have an issue.

Below are the details of the installation:
Joomla Version running on site: Joomla! 2.5.6
Shopping Cart: Virtuemart
Shopping Cart version running: 2.0.18a
Vendor Details: The cart has just one vendor which is admin user and rights set to superuser.
Payment Gateway Used: WorldPay Payment Plugin (C) 2008-2012 E-commerce Solution 2.0.6 (Full) and default paypal plugin
Checkout Settings: Guest or login/registration required to checkout.

Problem Faced:
1. The vm system doesnt send an automated email to the customer when an order is placed.

2. The vm system doesnt send an automated email to the vendor when an order is placed.

3. Joomla sucessfully emails the admin on new user registrations, contact forms both with phpmailer and smtp setup

4. User in both joomla and Vm set to recevie system emails

5. if the order status is changed from pending to confirmed both customer and vendor receive the email of order confirmation

6. forgot to add ask us a question works fine also for the site

From other threads
Could you check if you have the option under shopper admin/storeadmin configuration to receice system mail?
Reply: Yes, that option is checked to yes.

What you have select in the backend configuration->checkout Default Order Status to send an invoice ? Confirmed?
Reply: Yeah, receive invoice on confirmed.

disabling the worldpay has the same result. I also have another site which on another server without the worldpay plugin and the issue is happening also.

It looks like the issue started around version 2.0.8 so i upgraded both sites to the latest versions of VM, The server successfully emails the email address so I have ruled out the server, the joomla email also works with no issues so I ruled that out so it looks like something in the VM setup is not sending out onew order placed emails all other stages of the process send out the emails fine.

Any help would be great

Thanks

Al
Title: Re: No New Order Confirmation Email
Post by: leFlea on January 18, 2013, 08:12:04 AM
Also having exact same problem. I'm using the default Paypal plug-in. Orders are confirmed upon successful sandbox testing, but no order confirmation emails are sent out.
I will try to check and correct core VM code but I hope we can find better solutions here first.
Title: Re: No New Order Confirmation Email
Post by: BigAlStorm on January 21, 2013, 13:16:43 PM
Yeah I am testing with a vanilla install to see if one of teh overrides I made to the design might have caused it but highly unlikely.

On a serious issue I hoped to get some replies as I see others with same issue all over the forums with no solution.

Will post update on the vanilla site and see what happens

Title: Re: No New Order Confirmation Email
Post by: leFlea on January 21, 2013, 14:13:04 PM
I resolved my issue by updating my order output overrides, replaced a function that no longer exists in current VM version. Have you tried to turn on error reporting to check?
Title: Re: No New Order Confirmation Email
Post by: BigAlStorm on January 21, 2013, 16:25:07 PM
couldnt see any errors, can you give me an example of how you did it.

Trying to do as little overrides as possible but this is a production live site so needs to work (hack or no hack ) lol

Thanks

Title: Re: No New Order Confirmation Email
Post by: leFlea on January 23, 2013, 06:59:47 AM
I replaced code using shopFunctionsF::getBaseUrl() in these overrides:
* invoice/invoice_items.php
* invoice/mail_html_shopper.php
* invoice/mail_html_footer.php

Details on the diff file (attached).

This corrected my problem. But seeing that you have your item #5 working, this solution might not be the fix for you. Still, let me know if it works or not.

[attachment cleanup by admin]
Title: Re: No New Order Confirmation Email
Post by: BigAlStorm on January 23, 2013, 21:35:53 PM
thanks leflea

I will try this out

Worst case I will reinstall the store and setup each of the template overrides one at a time then look at all teh core hacks that were made

Al
Title: Re: No New Order Confirmation Email
Post by: lukelee on March 08, 2013, 22:52:17 PM
Hi, bigalstorm:
Have you solve this problem? I am having this problem now, really a headache
Title: Re: No New Order Confirmation Email
Post by: PRO on March 08, 2013, 22:58:29 PM
in the payment method what is the setting?

There is a setting inside each payment method
Title: Re: No New Order Confirmation Email
Post by: lukelee on March 08, 2013, 23:17:18 PM
Thank you for reply, Pro:
here is the screen grab:
(http://hytechworkboots.com.au/1.png)
(http://hytechworkboots.com.au/2.png)
Title: Re: No New Order Confirmation Email
Post by: PRO on March 09, 2013, 19:09:34 PM
in the vmart config thats the PDF invoice, not order_email


so when you log in and change paypal order to confirmed it sends the email right?:"
Title: Re: No New Order Confirmation Email
Post by: lukelee on March 10, 2013, 10:38:28 AM
Quote from: PRO on March 09, 2013, 19:09:34 PM
in the vmart config thats the PDF invoice, not order_email


so when you log in and change paypal order to confirmed it sends the email right?:"
Hi, Pro:
  Yes, when I manually change order status from pending to confirmed, email will be sent.
Title: Re: No New Order Confirmation Email
Post by: PRO on March 10, 2013, 13:59:34 PM
Quote from: lukelee on March 10, 2013, 10:38:28 AM
Quote from: PRO on March 09, 2013, 19:09:34 PM
in the vmart config thats the PDF invoice, not order_email


so when you log in and change paypal order to confirmed it sends the email right?:"
Hi, Pro:
  Yes, when I manually change order status from pending to confirmed, email will be sent.

then it works like its supposed to


If you want the email to be automatically sent.

Change the paypal status to default to confirmed
Title: Re: No New Order Confirmation Email
Post by: lukelee on March 10, 2013, 22:53:23 PM
Quote from: PRO on March 10, 2013, 13:59:34 PM
Quote from: lukelee on March 10, 2013, 10:38:28 AM
Quote from: PRO on March 09, 2013, 19:09:34 PM
in the vmart config thats the PDF invoice, not order_email


so when you log in and change paypal order to confirmed it sends the email right?:"
Hi, Pro:
  Yes, when I manually change order status from pending to confirmed, email will be sent.

then it works like its supposed to


If you want the email to be automatically sent.

Change the paypal status to default to confirmed

Thanks, Pro:
  But I also want notification for both vendor and buyer when paypal is pending.
Title: Re: No New Order Confirmation Email
Post by: PRO on March 10, 2013, 23:53:27 PM
have you tried "default order status to send invoice"

setting it to "pending"  ONLY?
Title: Re: No New Order Confirmation Email
Post by: lukelee on March 11, 2013, 00:25:52 AM
Quote from: PRO on March 10, 2013, 23:53:27 PM
have you tried "default order status to send invoice"

setting it to "pending"  ONLY?
Yes, I just tried. nothing has changed.
Title: Re: No New Order Confirmation Email
Post by: PRO on March 11, 2013, 01:33:35 AM
I dont know of a way to do this without changing the default status for paypal.

mine works the same.

When I get an email from paypal. I login, and change to confirmed.

In old vmart it sent the email first, BUT then I had to wait on paypal email just to make sure it was real order
Title: Re: No New Order Confirmation Email
Post by: lukelee on March 11, 2013, 01:57:54 AM
Quote from: PRO on March 11, 2013, 01:33:35 AM
I dont know of a way to do this without changing the default status for paypal.

mine works the same.

When I get an email from paypal. I login, and change to confirmed.

In old vmart it sent the email first, BUT then I had to wait on paypal email just to make sure it was real order
Yes, Understand. But the buyer needs an email notification. because if they decide to pay later, they need to find the invoice detail.
Title: Re: No New Order Confirmation Email
Post by: Flasher on April 29, 2013, 20:24:30 PM
Im having the same issue. Not getting the email but when i change the status of the order it will send the email to the admin and vendor.

Any news about a fix for this issue?  :(
Title: Re: No New Order Confirmation Email
Post by: SwordFish on June 22, 2013, 16:15:17 PM
Hi all,
Here is a good solution for this issue. Check the following post:

No order confirmation email sent after checkout via PayPal

http://forum.interamind.com/viewtopic.php?f=1&t=1302 (http://forum.interamind.com/viewtopic.php?f=1&t=1302)

Hope it can help.

Thanks,
J
Title: Re: No New Order Confirmation Email
Post by: Thomas Kampp on July 09, 2013, 14:21:46 PM
Quote from: SwordFish on June 22, 2013, 16:15:17 PM
Hi all,
Here is a good solution for this issue. Check the following post:

No order confirmation email sent after checkout via PayPal

http://forum.interamind.com/viewtopic.php?f=1&t=1302 (http://forum.interamind.com/viewtopic.php?f=1&t=1302)

Hope it can help.

Thanks,
J

Since the problem is not only related to the payment method this solution only works for a few selected users! We need Virtuemart to fix this important issue for good!
Title: Re: No New Order Confirmation Email
Post by: Bruno Marie on August 12, 2013, 18:56:23 PM
Hi,
I'm having the same issues, using oomla 2.5.11 and VM 2.0.20b.
Did anybody find a solution?
Was there a fix made by Virtuemart?
Title: Re: No New Order Confirmation Email
Post by: jenkinhill on August 13, 2013, 10:33:39 AM
Quote from: Bruno Marie on August 12, 2013, 18:56:23 PM
Was there a fix made by Virtuemart?

VirtueMart is a community project and as all members/users can contribute to the code base, add features etc. There is no "Virtuemart" that fixes things, especially when it is not broken.

Failure to receive order confirmation emails, assuming that Joomla's mailer id correctly configured and the correct (for your server)  Emails Settings in VM Configuration/Shop are most often due to server issues, especially on low end shared hosts, as several have reported that a change of server fixed the issue.  The other possible cause is failure to trigger the order email by the payment plugin used.
Title: Re: No New Order Confirmation Email
Post by: Thomas Kampp on August 13, 2013, 10:38:26 AM
It is not a server issue! All mails are being sent from the Joomla system and other extensions, including other VM mails. All mails except this one VM mail.
Title: Re: No New Order Confirmation Email
Post by: sdl on September 06, 2013, 10:40:32 AM
Joomla 2.5.14
VM version : 2.0.22
SIPS ATOS plugin : 1.7

Having the same issue with the SIPS ATOS payment extension bought on virtuemart extension catalog ...

Standard VM payment send notification mails to both shopper and vendor.
SIPS ATOS plugin doesnt

If i change manually the order status, both notification mails are sent...

Any ideas please ?
Title: Re: No New Order Confirmation Email
Post by: jenkinhill on September 06, 2013, 10:48:03 AM
Write a support ticket!  http://extensions.virtuemart.net/ticket
Title: Re: No New Order Confirmation Email
Post by: sdl on October 03, 2013, 18:39:22 PM
Still no solution :(
Title: Re: No New Order Confirmation Email
Post by: Thomas Kampp on October 03, 2013, 19:03:08 PM
I have solved it!  ;D

Regarding the setting in VM configuration about "Default Order Status to send an invoice" is that it is NOT working. It could be because the feature uses a function in the chosen payment plugin. This would explain why it is only working for some people and not others. So I stopped look at things in relation to this.

As this setting did not work for me, I had to look at the payment plugin is self (in this case ePay). The goal was to make it send the invoice when users completed the purchase. Looking at this useful guide (linked to by SwordFish) I was able to get it to send an invoice upon purchase: http://forum.interamind.com/viewtopic.php?f=1&t=1302

But there was a problem - it would send the email BEFORE the user used there credit card. But it got me thinking and I realised that the ePay plugin was trying to send the email, but things went wrong due to bad coding. So I fixed this simply by changing the criteria in the code for when the email was being send. It worked! So the solution ended up simply moving some code around in the payment plugin.

Perhaps your payment plugin has used the same "template" as ePay (no need to reinvent the wheel)?

The function in the payment plugin that needs changing is called "plgVmOnPaymentResponseReceived". Here I moved the following code to the bottom of the same function just before the "return true;":

$new_status = $method->status_success;

if($virtuemart_order_id)
{
// send the email only if payment has been accepted
if(!class_exists('VirtueMartModelOrders'))
require (JPATH_VM_ADMINISTRATOR . DS . 'models' . DS . 'orders.php');
$modelOrder = new VirtueMartModelOrders();
$order["order_status"] = $new_status;
$order["virtuemart_order_id"] = $virtuemart_order_id;
$order["customer_notified"] = 1;
    $order['comments'] = JText::sprintf('VMPAYMENT_EPAY_PAYMENT_STATUS_CONFIRMED', $payment_data["orderid"]);
$modelOrder->updateStatusForOneOrder($virtuemart_order_id, $order, true);

}


If this code is missing in your payment plugin, you might simply be able to add it to the function and it works. But it needs some adapting as "$new_status" and "$virtuemart_order_id" needs to be found in the code. Also note that the text string "VMPAYMENT_EPAY_PAYMENT_STATUS_CONFIRMED" needs to be translated in the language file (and perhaps be renamed to something other that EPAY).

I still say there is a problem, as the VM configuration is not working. The problem is really that it should NOT be the payment plugin that sends the mail, but VM it self. But until then this thread includes two solutions!  :)