VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Julian763 on April 29, 2019, 08:13:50 AM

Title: Virtuemart not sending new order “pending status” email
Post by: Julian763 on April 29, 2019, 08:13:50 AM
When i somebody create a new order that the status is pending, the virtuemart does not send the email order.

It sends just if the status is confirmed, or any others.

Someone know what can it be?

Title: Re: Virtuemart not sending new order “pending status” email
Post by: Jörgen on April 29, 2019, 09:47:34 AM
This is intended behaviour, there may be a hidden config to allow this, but pending does mean pending and therefore no e-mail confirmation will be sent out.
Payment methods like PayPal would otherwise always send the customer two e-mails for a normal payment, both for Pending and confirmed.

Jörgen @ Kreativ Fotografi
Title: Re: Virtuemart not sending new order “pending status” email
Post by: loppan on April 29, 2019, 12:13:09 PM
I think the setting is fully visable actually :).

In Configuration / Orders - if we add the "Pending" order status to "Default Order Status to send email to shopper" and "Default Order Status to send email to vendor", I think VM will send out Pending e-mails also. I had this setting enabled before, but realized pretty soon that it clogged up my e-mail, so I disabled it :).

It's possible that I remember wrong, but I think that's how it works.

Cheers

Peter
Title: Re: Virtuemart not sending new order “pending status” email
Post by: jenkinhill on April 29, 2019, 12:28:54 PM
No, in the current version I am using (VM3.4.5.10045)  for "Default Order Status to send email to vendor" you have a Pending option to let the vendor know that an order has been started but not yet paid for.
There is no Pending option for "Default Order Status to send email to shopper" or for "Status to create Invoice"
Title: Re: Virtuemart not sending new order “pending status” email
Post by: Georgios Kolomvos on August 25, 2022, 20:52:59 PM
There might be a solution at https://forum.virtuemart.net/index.php?topic=126593.msg530896#msg530896
Title: Re: Virtuemart not sending new order “pending status” email
Post by: sirick on December 19, 2022, 12:36:21 PM
Because the issue is still there and there is no solution on the forums except something about paypal, i decided to give back to the commmunity.

To fix the pending order status not sending email to the shopper, you have to access the files in your host server and follow the steps below:
//if ( in_array((string) $vars['orderDetails']['details']['BT']->order_status,$orderstatusForShopperEmail) ){
$sendMail = true;
vmdebug('renderMail by default orderstati');
//}


Basically what we do is that we bypass the configuration for sending emails and we send emails for all order statuses
Title: Re: Virtuemart not sending new order “pending status” email
Post by: pinochico on December 20, 2022, 00:38:46 AM
Quote from: sirick on December 19, 2022, 12:36:21 PM
Because the issue is still there and there is no solution on the forums except something about paypal, i decided to give back to the commmunity.

To fix the pending order status not sending email to the shopper, you have to access the files in your host server and follow the steps below:

  • Navigate to administrator/components/com_virtuemart/model/orders.php
  • search for keyword 'orderstatusForShopperEmail'
  • edit the code as below (comment out 2 lines)
//if ( in_array((string) $vars['orderDetails']['details']['BT']->order_status,$orderstatusForShopperEmail) ){
$sendMail = true;
vmdebug('renderMail by default orderstati');
//}


Basically what we do is that we bypass the configuration for sending emails and we send emails for all order statuses

You're just showing how you don't understand e-commerce solutions.

I strongly advise others not to use this hack at all.

Who has ever seen this put on Pending status == anyone can start an order and not complete == you will have multiple orders from SPAM customers every minute and you will send out multiple SPAM emails?

The pending status is just a core status and means that someone has started an order but hasn't completed it yet.
Only when they finish can you bother someone - a customer, an admin.

I as a customer don't care that I started an order that I haven't completed yet.

The Pending status is also there to let the eshop know that the item is reserved and the other customer can no longer buy it.

Please think before you edit something in core, not always what the eshop owner wants is correct.
Title: Re: Virtuemart not sending new order “pending status” email
Post by: annpaul on January 24, 2023, 17:00:20 PM
>Who has ever seen this put on Pending status == anyone can start an order and not complete == you will have multiple orders from SPAM customers every minute and you will send out multiple SPAM emails?

...

>The Pending status is also there to let the eshop know that the item is reserved and the other customer can no longer buy it.

So spam customer can reserve products and prevent legitimate customers from ordering them? I would want to know if spam customers are wreaking havoc on my shop.
Title: Re: Virtuemart not sending new order “pending status” email
Post by: GJC Web Design on January 24, 2023, 21:54:54 PM
QuoteSo spam customer can reserve products and prevent legitimate customers from ordering them? I would want to know if spam customers are wreaking havoc on my shop.

Admins can and have always been able to get an email for Pending!

The discussion is about emails for the client!
Title: Re: Virtuemart not sending new order “pending status” email
Post by: annpaul on January 25, 2023, 06:04:46 AM
Got it. Thanks!