Author Topic: Duplicated order confirmation mail to vendor and buyer  (Read 7299 times)

Balazs

  • Beginner
  • *
  • Posts: 3
Duplicated order confirmation mail to vendor and buyer
« on: September 30, 2014, 10:37:21 am »
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

  • Virtuemart - the Future is ever Changing
  • Global Moderator
  • Full Member
  • *
  • Posts: 1568
  • VirtueMart Version: Use VM3.6+
Re: Duplicated order confirmation mail to vendor and buyer
« Reply #1 on: September 30, 2014, 11:12:35 am »
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.

Balazs

  • Beginner
  • *
  • Posts: 3
Re: Duplicated order confirmation mail to vendor and buyer
« Reply #2 on: September 30, 2014, 12:56:38 pm »
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

  • Virtuemart - the Future is ever Changing
  • Global Moderator
  • Full Member
  • *
  • Posts: 1568
  • VirtueMart Version: Use VM3.6+
Re: Duplicated order confirmation mail to vendor and buyer
« Reply #3 on: September 30, 2014, 13:53:12 pm »
Great mark your post solved.

worknmn

  • Beginner
  • *
  • Posts: 18
    • My site(freelancer-web-programmer)
  • Skype Name: worknmn
Re: Duplicated order confirmation mail to vendor and buyer
« Reply #4 on: October 04, 2014, 00:23:37 am »
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 :
Code: [Select]
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

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10213
  • VM3.9 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Duplicated order confirmation mail to vendor and buyer
« Reply #5 on: October 10, 2014, 00:44:43 am »
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

  • Beginner
  • *
  • Posts: 18
    • My site(freelancer-web-programmer)
  • Skype Name: worknmn
Re: Duplicated order confirmation mail to vendor and buyer
« Reply #6 on: October 10, 2014, 01:55:32 am »
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

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10213
  • VM3.9 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Duplicated order confirmation mail to vendor and buyer
« Reply #7 on: October 10, 2014, 02:25:48 am »
Because you set it in the config that way?
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

  • Beginner
  • *
  • Posts: 18
    • My site(freelancer-web-programmer)
  • Skype Name: worknmn
Re: Duplicated order confirmation mail to vendor and buyer
« Reply #8 on: October 10, 2014, 09:07:27 am »
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

Dragoner

  • Beginner
  • *
  • Posts: 38
Re: Duplicated order confirmation mail to vendor and buyer
« Reply #9 on: October 13, 2014, 16:05:16 pm »
Thanks ! It works .. ;)

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10213
  • VM3.9 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Duplicated order confirmation mail to vendor and buyer
« Reply #10 on: October 14, 2014, 21:18:19 pm »
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

  • Beginner
  • *
  • Posts: 18
    • My site(freelancer-web-programmer)
  • Skype Name: worknmn
Re: Duplicated order confirmation mail to vendor and buyer
« Reply #11 on: October 14, 2014, 21:31:20 pm »
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

  • Jr. Member
  • **
  • Posts: 67
Re: Duplicated order confirmation mail to vendor and buyer
« Reply #12 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!

worknmn

  • Beginner
  • *
  • Posts: 18
    • My site(freelancer-web-programmer)
  • Skype Name: worknmn
Re: Duplicated order confirmation mail to vendor and buyer
« Reply #13 on: October 21, 2014, 20:54:17 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

  • Jr. Member
  • **
  • Posts: 67
Re: Duplicated order confirmation mail to vendor and buyer
« Reply #14 on: October 21, 2014, 21:03:38 pm »
so you mean comment out the following line?

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