VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: virtucms on December 21, 2013, 00:01:15 AM

Title: Pending order Not receving any email
Post by: virtucms on December 21, 2013, 00:01:15 AM
Hello,

I am having problem with notification.

What I would like to accomplish is when a user make an order, I will like to receive an email saying that there is an order pending.
I did a lot of research and tried many things, but so far nothing is working.  :-\ :'(

I added Pending status in Default order status in Control Panel/ Checkout... but same thing

I do receive an email when order is completed or cancel.. but not when it is pending ... so the phpmail is working well (I guess)

I am using Virtuemart 2.0.26  and Joomal 2.5.16
My payment method is only one Paypal

Any guide or help will be really apprecicate

[attachment cleanup by admin]
Title: Re: Pending order Not receving any email
Post by: virtucms on January 10, 2014, 04:49:28 AM
*** Bump ***

Guess there is no hope for me. It was my first question and never receive any answer :( :'(

Recently, I just update the Virutemart to recent version and Joomla to 2.5.17 and still same things
Title: Re: Pending order Not receving any email
Post by: James91 on January 10, 2014, 16:29:19 PM
Same problem here ... I'm using Virtuemart 2.0.26a

I probably found out what's the reason for this problem.

On every order initially there are set 2 order states (both on the old VM version 2.0.14 which works perfect and on the new VM version 2.0.26a).
VM 2.0.14: When a customer makes an order both order states were set to "pending" (order_status_code: P)
VM 2.0.26a:
When a customer makes an order one order status is set to "pending" (order_status_code: P)
and the other order status is set to "pending" when you look at the order list, but if you click on an order you see that the order status is set to "COM_VIRTUEMART_UNKNOWN_ORDER_STATUS" (in the database you will find the order_status_code: 1)

If I manually set the order status to "pending" both the customer and me receive an notofication e-mail of the order.

Does anybody know whether this bug is fixed in VM 2.0.26d ?
Title: Re: Pending order Not receving any email
Post by: eag on January 11, 2014, 00:01:02 AM
To me happens same thing.

I have several payment methods including Paypal and bank transfer, when a user makes a purchase and select any payment method at the time of ordering and is marked as "pending", the system does not send any mail or the user, not the shop owner.
Only at the time of payment, if you have chosen a payment method that allows it, and return to the store marking the order as "canceled" or "confirmed", the system sends the mail.

In my case, in the database, the order_status_code, is correct, 'P'.

any idea to solve it?

thanks in advance

VM 2.0.26d
Joomla 2.5.17
Title: Re: Pending order Not receving any email
Post by: alatak on January 11, 2014, 16:02:11 PM
Hello
If you are not receiving an email it may be because there is a fatal error when receiving the IPN.
Check your server error logs.
Title: Re: Pending order Not receving any email
Post by: James91 on January 12, 2014, 05:46:52 AM
I updated VM to version 2.0.26d but it still not worked ...
But then I deleted all my payment methods and created them new and now it works  ;D
Title: Re: Pending order Not receving any email
Post by: jcalvert on January 13, 2014, 08:08:11 AM
I am also having these problems w/ PayPal on VM 2.0.26a.

I examined the code very carefully and found that the notification emails are not being sent in the case of Pending orders.  But this appears only true for PayPal Standard.

Please see my postings:
http://forum.virtuemart.net/index.php?topic=120985.msg414531#msg414531
http://forum.virtuemart.net/index.php?topic=101478.msg414526#msg414526

thanks,
JC
Title: Re: Pending order Not receving any email
Post by: alatak on January 13, 2014, 09:06:02 AM
Hello
Please update to 2.0.26d http://dev.virtuemart.net/attachments/download/673/com_virtuemart.2.0.26d_extract_first.zip (http://dev.virtuemart.net/attachments/download/673/com_virtuemart.2.0.26d_extract_first.zip)
Title: Re: Pending order Not receving any email
Post by: eag on January 13, 2014, 17:28:58 PM
Hi alatak
my VM version is 2.0.26d, no with your link, with update link http://virtuemart.net/component/ars/repository/virtuemart/virtuemart-2-0-26d/comvirtuemart-2-0-26d-zip and AIO http://virtuemart.net/component/ars/repository/virtuemart-2-aio/virtuemart-2-aio-2-0-26d/comvirtuemart-2-0-26dextaio-zip

Trying like James91,
I delete all my payments methods, and create new Paypal, and the checkout proccess stoped, and ask again and again, to select the payment method.
If I create another, "standard" for example, the checkout proccess work correctly, but I still do not receive the mail informing Order, when Pending.
If I finish OK the paypal pay, the return is correct, the order is marked as confirmed and mail is received with the order.
If I finish KO, cancel in paypal, the return is correct, the order is marked as cancelled and no mail is received with the order.
Title: Re: Pending order Not receving any email
Post by: James91 on January 13, 2014, 19:07:00 PM
I had the same problem that VM always asked for the payment method even when I clicked it. It only worked when I didn't activate the one page checkout in the virtuemart shop configuration ... but since I'm not using the standard checkout anymore but rather a checkout component I don't need to bother with this bug.
Title: Re: Pending order Not receving any email
Post by: terjef on January 13, 2014, 21:14:43 PM
I also get kicked back to shipment everytime i want to confirm the order.

Back again to 2.0.24c  :(

Regard
Terje
Title: Re: Pending order Not receving any email
Post by: Milbo on January 15, 2014, 10:43:34 AM
Heyho, I think you are using the OPC (one page checkout) option and miss to edit your layout a bit, please read here

http://forum.virtuemart.net/index.php?topic=120943.0
Title: Re: Pending order Not receving any email
Post by: eag on January 15, 2014, 14:03:49 PM
Milbo Thanks for the answer,

this solves the problem with the payment method selection.

But for pending orders, the system still does not send an email to the buyer, either for canceled orders, only when payment has been done properly and the order is marked as confirmed.

Any ideas to fix this and that when a user places an order, with for example, payment method COD or bank transfer, and marked as pending, a mail is send with the order to the buyer?

thanks in advance
Title: Re: Pending order Not receving any email
Post by: Milbo on January 15, 2014, 18:37:37 PM
This should be a config option in the checkout tab.
Title: Re: Pending order Not receving any email
Post by: eag on January 15, 2014, 19:08:30 PM
Hi Milbo,

I have configured as you indicate me in your last post. Thank you very much, was my forgetfulness.
Now, when the payment method is of type 'standard', the system correctly send emails to buyer and seller, when the order has the 'pending' state.

But when I choose the Paypal payment method, the system does not send any email when the order status is 'pending'.

There is also a behavior that is not correct, in the configuration of Paypal payment method, I set the following:
Pending transactions -> confimed by shopper.
The state 'confimed by shopper' exists.
When a purchase is made, before making the payment, the order status is 'pending' and not 'confimed by shopper'

thanks in advance
Title: Re: Pending order Not receving any email
Post by: alatak on January 16, 2014, 10:19:20 AM
Hello
Quotethe system does not send any email when the order status is 'pending'
The status pending is a very special status: it means the the order has been created, and emails are never sent in this case.

QuoteThere is also a behavior that is not correct, in the configuration of Paypal payment method, I set the following:
Pending transactions -> confimed by shopper.
The state 'confimed by shopper' exists.
When a purchase is made, before making the payment, the order status is 'pending' and not 'confimed by shopper'
if the order status does not change, it means that VirtueMart did not receive the IPN from PayPal.

You have to check this first.
- make an order
- pay
- go to you server logs, and check if the Paypal sent an IPN. You should have an URL which looks like
/index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component


If you do see this URL in your server logs, then turn on the debug, and log option in the paypal payment configuration.
You will have some debug infos displayed.
and also some debug infos in a log file.
Check the log file to find out why the IPN has not validated the payment.

If you do NOT see this URL in your server logs, check the configuration of your PayPal account at PayPal.
Title: Re: Pending order Not receving any email
Post by: jcalvert on January 25, 2014, 19:59:23 PM
I think the confusion is that people are expecting the PayPal module to work the way it used to (for PayPal Standard).  Pending status did, in the past with VM1, generate the emails to customer and vendor.

I just discovered that in VM 2.0.22a a message that appears at the top of the Configuration tab of the PayPal payment module:

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

This message does not appear in VM 2.0.26a (and presumably later versions).

alatak said:
QuotePlease update to 2.0.26d

Are you saying that in VM 2.0.26d that the PayPal module does send the emails for pending status?

JC
Title: Re: Pending order Not receving any email
Post by: jenkinhill on January 25, 2014, 20:03:44 PM
It is a different PayPal plugin, with options for Standard, Express Checkout, PayPal Payment Pro and Hosted Pro
Title: Re: Pending order Not receving any email
Post by: jcalvert on January 25, 2014, 20:08:02 PM

I understand it is new PayPal plugin software for VM2.

So, to confirm... no emails sent for Pending status?  ... transaction has to be completed first?

And what of this? http://forum.virtuemart.net/index.php?topic=101478.60

Is this fixed in VM 2.0.26d?

thanks,
JC
Title: Re: Pending order Not receving any email
Post by: jenkinhill on January 25, 2014, 20:27:53 PM
No email should be sent when pending, only when an order is complete. IIRC it used to be the case that a mail was sent at pending which caused a lot of complaints as shops were getting order emails that were never paid for.

The new plugin should fix that, but now you can get an error log file if there is an issue.  That is why you were told this:  http://forum.virtuemart.net/index.php?topic=121079.msg414534#msg414534
Title: Re: Pending order Not receving any email
Post by: gerstavros on January 25, 2014, 20:53:33 PM
Please help me, having same problem with  http://forum.virtuemart.net/index.php?topic=106076.0
I cannot change the order status, also the standar payment method gives blank page after placing an order
I have checked with most recent versions of vm and joomla 2.5.17, PHP 5.3.27, using smtp email of joomla for vm
Ask me if need any more information
Title: Re: Pending order Not receving any email
Post by: jcalvert on January 25, 2014, 20:59:49 PM
QuoteNo email should be sent when pending, only when an order is complete. IIRC it used to be the case that a mail was sent at pending which caused a lot of complaints as shops were getting order emails that were never paid for.

Well, it's supposed to be selectable when the emails are sent!  In this version of the PayPal module, it secretly doesn't send emails when status pending is selected - which caused me to waste a lot of time trying to figure out what was going on.  At least in VM2.0.22a there was a warning posted at the top of the Configuration tab of the PayPal module - "In VM2, the vendor and buyer will ONLY receive an email when the transaction is complete."  ... maybe that warning should be put back!

I actually never had a problem with the emails being sent when status was pending, because that let the vendor know an order was attempted and could then follow up and find out why payment wasn't made.  As you know, people sometimes fail to complete orders in PayPal for one reason or another (human error).

I will try 2.0.26d and retest.

thanks,
JC