From 99bfeb56fea04f4159e6abfac54af8cf6f24cbfa Mon Sep 17 00:00:00 2001 From: seansan Date: Sat, 6 Feb 2016 14:54:55 +0100 Subject: [PATCH 1/2] FIX. Enable re-sending again - http://magento.stackexchange.com/a/37690/78 FIX. Enable re-sending again - http://magento.stackexchange.com/a/37690/78 Irritating "new" feature so order emails cannot be resent ... fixed --- .../core/Mage/Adminhtml/controllers/Sales/OrderController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/code/core/Mage/Adminhtml/controllers/Sales/OrderController.php b/app/code/core/Mage/Adminhtml/controllers/Sales/OrderController.php index 45bbd3e4599..6d9184e321e 100644 --- a/app/code/core/Mage/Adminhtml/controllers/Sales/OrderController.php +++ b/app/code/core/Mage/Adminhtml/controllers/Sales/OrderController.php @@ -136,6 +136,8 @@ public function emailAction() { if ($order = $this->_initOrder()) { try { + // FIX. Enable re-sending again - http://magento.stackexchange.com/a/37690/78 + $order->setEmailSent(false); $order->sendNewOrderEmail(); $historyItem = Mage::getResourceModel('sales/order_status_history_collection') ->getUnnotifiedForInstance($order, Mage_Sales_Model_Order::HISTORY_ENTITY_NAME); From 1e6795c852d7c948704b7f13f053daf50a54d1d5 Mon Sep 17 00:00:00 2001 From: seansan Date: Tue, 11 Oct 2016 21:31:23 +0200 Subject: [PATCH 2/2] Spaces --- .../core/Mage/Adminhtml/controllers/Sales/OrderController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/core/Mage/Adminhtml/controllers/Sales/OrderController.php b/app/code/core/Mage/Adminhtml/controllers/Sales/OrderController.php index 6d9184e321e..9e910aeacf5 100644 --- a/app/code/core/Mage/Adminhtml/controllers/Sales/OrderController.php +++ b/app/code/core/Mage/Adminhtml/controllers/Sales/OrderController.php @@ -137,7 +137,7 @@ public function emailAction() if ($order = $this->_initOrder()) { try { // FIX. Enable re-sending again - http://magento.stackexchange.com/a/37690/78 - $order->setEmailSent(false); + $order->setEmailSent(false); $order->sendNewOrderEmail(); $historyItem = Mage::getResourceModel('sales/order_status_history_collection') ->getUnnotifiedForInstance($order, Mage_Sales_Model_Order::HISTORY_ENTITY_NAME);