Author Topic: Orders being stored, Emails not being sent  (Read 971 times)

Mendi

  • Beginner
  • *
  • Posts: 3
Orders being stored, Emails not being sent
« on: June 24, 2014, 12:52:26 pm »
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.



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.



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.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10518
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Orders being stored, Emails not being sent
« Reply #1 on: June 24, 2014, 15:44:42 pm »
would suspect the payment plugin - is it up to date for 2.6.6?
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Mendi

  • Beginner
  • *
  • Posts: 3
Re: Orders being stored, Emails not being sent
« Reply #2 on: June 25, 2014, 12:34:40 pm »
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?

Mendi

  • Beginner
  • *
  • Posts: 3
Re: Orders being stored, Emails not being sent
« Reply #3 on: June 25, 2014, 14:04:08 pm »
This is where the payment plugin updates the order status inside plgVmOnPaymentResponseReceived function:

Code: [Select]
           
            $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?