News:

Looking for documentation? Take a look on our wiki

Main Menu

Duplicated order confirmation mail to vendor and buyer

Started by Balazs, September 30, 2014, 10:37:21 AM

Previous topic - Next topic

Balazs

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?

John2400


Balazs

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

John2400


worknmn

#4
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 )


my site: sagip.ru

Milbo

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
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

worknmn

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.
my site: sagip.ru

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

worknmn

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.
my site: sagip.ru


Milbo

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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

worknmn

I don't understand you.
What's about status of order, after shopper confirm order and if store has not online payment?
my site: sagip.ru

dorkus

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!

worknmn

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
my site: sagip.ru

dorkus

so you mean comment out the following line?

$orderModel->notifyCustomer($this->virtuemart_order_id, $orderDetails);