Created
November 1, 2012 13:08
-
-
Save deivisonarthur/3993533 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); | |
| $order = Mage::getModel('sales/order')->loadByIncrementId($this->getOrderId()); | |
| if ($order->getId()) { | |
| try { | |
| $order->sendNewOrderEmail(); | |
| $order->setEmailSent(true); | |
| echo "Foi enviado copia do pedido para seu email com sucesso!\n"; | |
| } catch (Exception $e) { | |
| echo $e->getMessage(); | |
| } | |
| } else { | |
| echo "Pedido $orderIncrement nao encontrado\n"; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment