2014-07-16 56 views
0

當我收到中介支付通知時,我正在使用中介付款,並創建了一種對帳方法,以更改magento中的請求狀態。如何發送訂單更新郵件?

它真的有效,在數據庫中的交易狀態等,我的問題是我如何發送電子郵件通知給聽誰更改訂單狀態的用戶?

當你手動更改應用程序的狀態有選擇複選框來通知客戶端,我想同樣的事僅僅是這樣的:

When you finish updating the status in the database to send the email with the new status something like: 
<?php 
    $order = Mage::getModel('sales/order')->load($id); 
    $order->sendUpdateOrderEmail($newStatus); 
?> 
+0

這個工程$ order-> sendNewOrderEmail() – Dexxtz

回答

0

回覆:

<?php 
    $order = Mage::getModel('sales/order')->load($id); 
    $order->sendOrderUpdateEmail($notify, $comment); // $notify is boolean 
?> 
+0

在admin - > $ order-> addStatusToHistory($ status,$ comment,$ notify)中添加歷史記錄; – Dexxtz

相關問題