News:

Looking for documentation? Take a look on our wiki

Main Menu

BUGs, Sent two e-mail vendor and shopper.

Started by TanaTik, September 18, 2014, 14:53:20 PM

Previous topic - Next topic

TanaTik

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

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

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

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

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

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:
// Send the email

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



New code:
// 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

tested this fix, not work :( don't send any mails. Thanks for the answer

JasonDeeFL

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

Quote from: TanaTik 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.

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

JasonDeeFL

The guy doesn't speak very good English obviously, he meant he'll use whatever settings as long as they send the emails.

Milbo

If I take a look on your settings, it is just Confirmed by shopper instead of pending
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

slammy

#11
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

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

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

Quote from: K3N0Bi1 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".

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