Joomla 2.5.8 and Virtuemart 2.6.10 (VM recently updated from 2.0.14)
The confirmation email is set to be sent right after the order (for vendor and customer). My problem is that the email is sent twice both to vendor and both to customer.
The order takes about 10 seconds and the duplicated email arrives with 4 seconds difference.
What can be the reason? Do you have any idea where to modify the code to avoid duplication?
http://forum.virtuemart.net/index.php?topic=123644.0
This has been a topic in the forum. Just might use search first if you have an issue.
True, sorry! I have figured out that my problem is similar to adriespo's problem in the topic you mentioned:
http://forum.virtuemart.net/index.php?topic=123644.105 (http://forum.virtuemart.net/index.php?topic=123644.105)
Great mark your post solved.
I have some problem.
Virtuemart 2.6.10, joomla! 2.5.27
After user confirm order he and admin get twice e-mail. Status for order panding ( P ).
I found that in \components\com_virtuemart\helpers\cart.php :
function confirmedOrder() {
...
$orderModel->notifyCustomer($this->virtuemart_order_id, $orderDetails);
$orderModel->notifyCustomer($this->virtuemart_order_id, $orderDetails); not exist in early version
I comment that string.... I think it's bug: send some e-mails on create order and after send other in payment plugins ( after change status order )
Do you have the right settings in the vm config? We dont send any email at pending. I should remove the option, lol. When I remove the option that you can select "Pending", it will make it easier for 40% of the users, but I know there is at least 1% screaming. Hmm
And so??? Why on create(confirmed by shopper) order you send e-mail, and at same time in order change order status and send again?
One place for send e-mail - then change order status.
Because you set it in the config that way?
I don't get payment online in my stroe. Therefore i need to notice manager about create order. At the same time, i need to send email to shopper, that we get from him order. Because it's the correct form of behavior: notice/inform shopper about order status.
Thanks ! It works .. ;)
Yeh but not Pending.
I just made a poll within our internal group, 18 people. So long we decided to remove possibility to set the order status pending for shoppers. Only vendors may be interested.
I don't understand you.
What's about status of order, after shopper confirm order and if store has not online payment?
we run vm 2.6.10 and joomla 2.5.27 and also receive one order in the system but two admin mails for pending payments. customer receives two confirmation mails as well. very confusing.... i am not sure how to fix this?? please advise!
Quote from: dorkus on October 21, 2014, 20:31:52 PM
we run vm 2.6.10 and joomla 2.5.27 and also receive one order in the system but two admin mails for pending payments. customer receives two confirmation mails as well. very confusing.... i am not sure how to fix this?? please advise!
Look at http://forum.virtuemart.net/index.php?topic=125997.msg431927#msg431927
so you mean comment out the following line?
$orderModel->notifyCustomer($this->virtuemart_order_id, $orderDetails);
Quote from: dorkus on October 21, 2014, 21:03:38 PM
so you mean comment out the following line?
$orderModel->notifyCustomer($this->virtuemart_order_id, $orderDetails);
Yes.
so now no pending order mails are sent - we want customers to receive an order confirmation - no matter if its paid or not?!?! what do we do now?
You should check configuration in "Checkout".
"Default Order Status to send email to shopper" and "Default Order Status to send email to vendor " should have "Panding"
Thanks worknmn - your fix works for me too on VM2.6.18. I had same problem with unwanted extra pending order being sent to both shopper and admin.