如何在订单更新时发送电子邮件?

时间:2014-07-16 13:11:19

标签: php email magento

当我收到付款中介通知时,我正在使用中间付款,并创建了一种对帐方法,以便在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);
?>

1 个答案:

答案 0 :(得分:0)

答复:

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