0

i have this problem,

so once we create the order, along with the order email [its not going to customer] i want to send invoice mail also to customer.

because we are not getting order confirmation email if we do payment through paypal standard method. but we get invoice and shipment mails.

2 Answers 2

1

Form Magento1.9 Order mail send via cron job .

But You can overcome using this simple free Extension, install this extension they will give you option make e-mail in queue or not

https://www.magentocommerce.com/magento-connect/smtp-pro-email-free-custom-smtp-email.html

3
  • we are not at all getting order emails only for paypal payment method, for other payment methods its working fine. we will try this and let you know. Commented Jun 8, 2016 at 5:53
  • Have you tried that extension?? Commented Jun 9, 2016 at 4:43
  • i am trying that, facing some configuration issue, will check & let you know. Commented Jun 9, 2016 at 5:23
2

**

Here is the Latest Solution

**

Please try and le me know- check my blog

http://www.anupchaudhary.com/2016/06/solved-paypal-automated-order.html

OR

You need to add some code in

app/design/frontend/base/default/template/checkout/success.phtml

<?php 
$order = Mage::getModel('sales/order');
$customer = Mage::getSingleton('customer/session')->getCustomer();
$incrementId = Mage::getSingleton('checkout/session')->getLastRealOrderId();
$order = Mage::getModel('sales/order')->loadByIncrementId($incrementId);
$countryCode = $order->getShippingAddress()->getCountry();
if($countryCode!='IN')
{
           if($order['status']=='payment_complete')
           {
                                 try
                                {
                                    $order->sendNewOrderEmail();
                                }
                                catch (Exception $ex)
                                {
                                    echo "Email Not Sent...";
                                }
                        $customer = Mage::getSingleton('customer/session')->getCustomer();
                        $email = $customer->getEmail();//End Email Sending
           }

}?>

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.