2013-07-23 46 views
0

我有Magento 1.6.0.0,我使用Paypal Express Checkout。问题是发票电子邮件不会自动发送。它说,在收据明细页:Magento 1.6 - 发票电子邮件不发送

发票邮件没有发送

有人能告诉我什么是这里的问题?

订单确认电子邮件已成功发送,我认为Paypal数据也通过IPN(或PDT)获取,因为我收到了来自PayPal的数据填充的“付款信息”。

让我知道如何解决这个问题。

非常感谢。

回答

0

好吧,这是我如何解决它自己!

[文件\app\code\core\Mage\Sales\Model\Order\Payment.php]

public function registerCaptureNotification($amount) 
{ 
    . 
    . 
    . 
    // at the end right before return $this; 

    // Custom Code - Send email on Invoice #- 
    if (!$this->getIsTransactionPending()){ 
    if(!$this->getIsFraudDetected()){ 
    if($invoice) 
    { 
     @$invoice->sendEmail(); 
     @$invoice->setEmailSent(true); 
    } 
    } 
    } 
    //#- 
} 

然而,这仅与PayPal IPN工作被称为并确认...