I am using VirtueMart 2.6.6 (clean install) and Joomla 2.5.14. Set up a basic shop with a payment plugin for Virtuemart my bank provided and configured it to send emails to shopper and vendor when payments are done.
(http://s14.postimg.org/y301o1g01/Untitled.png) (http://postimage.org/)
I am testing it and the shop is working, test payments confirmed and orders stored but emails are not being neither to the shopper nor to the vendor after the payment is done.
(http://s22.postimg.org/h8zzqp4wx/Untitled2.png) (http://postimage.org/)
If I change the order status and click on "Notify Shopper" checkbox, email is sent correctly, so the PHP mailer is working and there isn't any email filter blocking it.
I searched for a solution for my problem in this forum but I could not find it. Thanks.
would suspect the payment plugin - is it up to date for 2.6.6?
The paypal payment plugin sends the emails correctly, so yes the error is in the payment plugin my bank sent me. Can someone tell me where or what php file is resposible for cheking the order status and sending the emails to see if i can fix it?
This is where the payment plugin updates the order status inside plgVmOnPaymentResponseReceived function:
$modelOrder = new VirtueMartModelOrders();
$orderStatus = "C";
$order['order_status'] = $orderStatus;
$order['virtuemart_order_id'] = $virtuemart_order_id;
$order['customer_notified'] = 0;
$modelOrder->updateStatusForOneOrder($virtuemart_order_id, $order, TRUE);
$cart->emptyCart();
Changing $order['customer_notified'] = 0 to 1 its not sending either, this part only updates the order status, I can't find the code that sends the email. Where inside Paypals plugin code does it send or tell VirtueMart to send the emails?