【问题标题】:Magento 1.6 - Invoice Emails are not being sentMagento 1.6 - 未发送发票电子邮件
【发布时间】:2013-07-22 01:03:31
【问题描述】:

我有Magento 1.6.0.0,我使用Paypal Express Checkout。问题是发票电子邮件不会自动发送。它在发票详细信息页面上显示:

发票电子邮件未发送

谁能告诉我这里有什么问题?

订单确认电子邮件已成功发送,我认为 Paypal 数据也通过 IPN(或 PDT)被捕获,因为我收到的“付款信息”中包含来自 paypal 的数据。

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

非常感谢。

【问题讨论】:

    标签: paypal magento-1.6


    【解决方案1】:

    好的,这就是我自己解决的方法!

    [文件\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...

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-06
      • 2014-01-01
      • 2016-07-07
      • 1970-01-01
      相关资源
      最近更新 更多