Author Topic: BUGs, Sent two e-mail vendor and shopper.  (Read 6495 times)

TanaTik

  • Beginner
  • *
  • Posts: 4
BUGs, Sent two e-mail vendor and shopper.
« on: September 18, 2014, 14:53:20 pm »
Help me please.
Go to VirtueMart ->  settings -> Checkout(ordering)  - > Order Status default settings for sending e-mail. letters to the buyer and Order Status default to send e-mail seller.
if I set the option COM_VIRTUEMART_ORDER_STATUS_PENDING - > send two e-mails buyers and seller.
 if I set the option  VIRTUEMART_ORDER_STATUS_CONFIRMED_BY_SHOPPER do nothing (not sent e-mails)
if I set the option   COM_VIRTUEMART_ORDER_STATUS_CONFIRMED and then confirmed. Work good send 1 e-mail buyer and seller.

I need when i stay option COM_VIRTUEMART_ORDER_STATUS_PENDING, send 1 –email buyer and 1 seller. (NOT TWO).
Version VirtueMart 2.6.10, Joomla! 2.5.24 

Thanks for the help.

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3548
  • using Matomo instead of Google Analytics
Re: BUGs, Sent two e-mail vendor and shopper.
« Reply #1 on: September 18, 2014, 20:36:47 pm »
In Virtuemart Configuration - check if you have entered 'Pending' in Configuration > Checkout tab:
1. Default Order Status to send email to shopper
2. Default Order Status to send email to vendor

If yes, delete 'Pending' in those fields.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

TanaTik

  • Beginner
  • *
  • Posts: 4
Re: BUGs, Sent two e-mail vendor and shopper.
« Reply #2 on: September 19, 2014, 10:22:03 am »
thanks for the answer, but the answer does not fit, because I need to be when there is a status of "pending" send 1 letter buyer and seller, and I have sent two emails of buyers and sellers. (if delete status pending and add other do nothing, described above)

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3548
  • using Matomo instead of Google Analytics
Re: BUGs, Sent two e-mail vendor and shopper.
« Reply #3 on: September 19, 2014, 22:06:23 pm »
Pending Order status is used for orders which got created, but are not confirmed by the shopper, so why do you want to send emails for an order that has not yet been placed?
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

TanaTik

  • Beginner
  • *
  • Posts: 4
Re: BUGs, Sent two e-mail vendor and shopper.
« Reply #4 on: September 20, 2014, 14:33:51 pm »
Because, I stay other status (if I set the option  VIRTUEMART_ORDER_STATUS_CONFIRMED_BY_SHOPPER do nothing (not sent e-mails),   
Need when user created order, send email admin and and I do not care which status be.

JasonDeeFL

  • Beginner
  • *
  • Posts: 9
Re: BUGs, Sent two e-mail vendor and shopper.
« Reply #5 on: November 21, 2014, 01:17:13 am »
Apparently you have to make a core hack to fix this problem , which will be overwritten when updating virtuemart,  adding the following code in \administrator\components\com_virtuemart\models\orders.php removed the double emails:

Old code:
Code: [Select]
// Send the email

$res = shopFunctionsF::renderMail('invoice', $order['details']['BT']->email, $vars, null,$vars['doVendor'],$this->useDefaultEmailOrderStatus);


New code:
Code: [Select]
// Send the email

if(empty($shipment_name) || empty($payment_name)){
return false;
}

$res = shopFunctionsF::renderMail('invoice', $order['details']['BT']->email, $vars, null,$vars['doVendor'],$this->useDefaultEmailOrderStatus);

Found a forum link on one of the posts you pointed out, but the third one you cited is the same problem unanswered,  I went ahead and replied to the guy...

TanaTik

  • Beginner
  • *
  • Posts: 4
Re: BUGs, Sent two e-mail vendor and shopper.
« Reply #6 on: November 21, 2014, 01:32:28 am »
tested this fix, not work :( don't send any mails. Thanks for the answer

JasonDeeFL

  • Beginner
  • *
  • Posts: 9
Re: BUGs, Sent two e-mail vendor and shopper.
« Reply #7 on: November 21, 2014, 03:52:15 am »
I had the exact problem you did and this fix worked... make sure your email status setup looks like this, you'll want Pending in the list: 


Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9997
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: BUGs, Sent two e-mail vendor and shopper.
« Reply #8 on: November 23, 2014, 13:16:54 pm »
Because, I stay other status (if I set the option  VIRTUEMART_ORDER_STATUS_CONFIRMED_BY_SHOPPER do nothing (not sent e-mails),   
Need when user created order, send email admin and and I do not care which status be.

Then the right solution is to find the reason, why there is not email sent for "confirmed by shopper".

Quote
I do not care which status be.
Useless attitude it has the quality of, I wanna fly, I dont care for reality
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

JasonDeeFL

  • Beginner
  • *
  • Posts: 9
Re: BUGs, Sent two e-mail vendor and shopper.
« Reply #9 on: November 23, 2014, 15:23:28 pm »
The guy doesn't speak very good English obviously, he meant he'll use whatever settings as long as they send the emails.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9997
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: BUGs, Sent two e-mail vendor and shopper.
« Reply #10 on: November 23, 2014, 22:02:49 pm »
If I take a look on your settings, it is just Confirmed by shopper instead of pending
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

slammy

  • Jr. Member
  • **
  • Posts: 169
  • vm supporter member
  • VirtueMart Version: vm 3.0.x and jml 3.4.5
Re: BUGs, Sent two e-mail vendor and shopper.
« Reply #11 on: November 24, 2014, 09:52:48 am »
Hi Tanatik,

form my point of view, don´t use ORDER STATUS CODE "P" in your config for normal usage of orderstatus, what means do not include "pending" into your orderstatus-email and payment-configuration (only for cancelled payments e.g PayPal) . This state is reserved for orders which are in different ways (e.g payment) not finished or cancelled by user while processing the order. Take a look at this thread last post, maybe it helps: http://forum.virtuemart.net/index.php?topic=125572.0
regards jens 

K3N0Bi1

  • Beginner
  • *
  • Posts: 4
Re: BUGs, Sent two e-mail vendor and shopper.
« Reply #12 on: December 04, 2014, 11:18:07 am »
Hi,

Same problem here. None of the above suggestions works for me. I just keep getting 2 emails when "Pending" is enabled in "Default Order Status to send email to vendor".

K3N0Bi1

  • Beginner
  • *
  • Posts: 4
Re: BUGs, Sent two e-mail vendor and shopper.
« Reply #13 on: January 30, 2015, 11:46:19 am »
I finally found a way to stop getting two e-mails, both as a vendor and shopper. The issue appeared to be created because of Standard payment method.
To fix this, click on Order Statuses in Configuration and there you create a new order status (ex. Pending2).
Next, click on Payment Methods in Shop and access each Payment Method set to Standard. In the Configuration tab, there is an 'Order Status for Pending transactions' field. Change it to the order status you just created (ex. Pending2).

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9997
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: BUGs, Sent two e-mail vendor and shopper.
« Reply #14 on: February 01, 2015, 12:04:24 pm »
Hi,

Same problem here. None of the above suggestions works for me. I just keep getting 2 emails when "Pending" is enabled in "Default Order Status to send email to vendor".

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