Magento Admin Order Notifier

Magento Admin Order Notifier

Here is a little Magento extension I wrote recently, its called Inchoo_AdminOrderNotifier. The whole idea behind the extension was to fulfil the request where you as a merchant wish to have your store personel instantly notified when customer places an order on your store.

The way extension works is that it observes the sales_order_place_after event, and then triggers the code that sends the special transactional email called Inchoo Admin Order Notifier. By default this email is almost indentical to the built in New Order transactional email. Its up to you as a merchant (Magento admin) to modify this transactional email to suite your needs (System > Transactional Emails > Add New Template > Load Default Template > Template > Inchoo Admin Order Notifier).

Extension supports several configuration options, which can be accessed via System > Configuration > Sales > Sales > Admin Order Notifier, as shown in the screenshot below.

Inchoo_AdminOrderNotifier

Please note that by default Magento does have Send Order Email Copy To option, available under System > Configuration > Sales > Sales Emails > Order section, that even accepts comma separated list of emails. However the main difference between that option and the option you get with this extension is that this extension supports special transactional email just for the notification, so you might fully edit it prior to notifying your personel.

Get Inchoo_AdminOrderNotifier.

You made it all the way down here so you must have enjoyed this post! You may also like:

Magento Grid Serializer for Ajax Grids Damir Korpar
Damir Korpar, | 10

Magento Grid Serializer for Ajax Grids

Programmatically add a custom block in Magento Admin Kristijan Glibo
Kristijan Glibo, | 4

Programmatically add a custom block in Magento Admin

Magento Maximum Allowed Order Amount Branko Ajzele
Branko Ajzele, | 25

Magento Maximum Allowed Order Amount

28 comments

  1. Magento Admin Order Notifier
    this module is not display in my admin panel.
    how to solve this problem…………..

  2. I got this error when Installing the extension

    Fatal error: Class ‘Inchoo_AdminOrderNotifier_Helper_Data’ not found in /home/yesmobile/public_html/app/Mage.php on line 547

  3. Hi,
    I used two Notiy Emails inupt box as first is vendor1 and second is vendor2.
    Moreover, I used Custom1 Email as admin email.
    I want to send Custom1 Email by Bcc when Notify Emails is reached.

  4. I just found one issue, When i am at checkout page, i click next to pay by paypal and redirected to paypal page while i get new order email notification, even i didnt pay yet. how come? the email should go once some1 pay and successful transaction. Please help me regarding this issue. thanks

    1. I have the same issue, if payment is not completed the email still sends to admin.

  5. Hi,

    Thanks, Installed properly and works except its not showing Payment method, that area is just blank container while default new order email shows payment details. i am using same template but doesn’t work.
    Let me know where to do the changes. thanks once again

    1. Hi,

      i know its late – but I just had the same issue – the module doesnt add the Payment Block to the Template Params.
      I just copied the code from the original Mage Sales Order Model beginning at line 1282 into the observer, do minor changes like change $this to $order and add ‘payment_html’ => $paymentBlockHtml to setTemlateParams in the observer on line 110.

      (I write it just if someone else has to do that too – seems like they put the paymentBlock out of the $order in magento ce 1.9)

  6. Hi
    This extension work is fine my gmail and my host mail but another hostname is not send mail. Why?

  7. Please let me know the main difference between magento inbuilt email sending option and with inchoo module (for email sending)

  8. Hello,
    I just tried Inchoo_AdminOrderNotifier on magento1.9. It works like a charm, thank you so much.
    How strange that’s not a native feature of magento ?!
    Thomas

  9. I would like to receive the email on a certain status change. Is that possible with some code change?

  10. Hi Andrew,

    to get all the order data you need to add this:

    $paymentBlock = Mage::helper('payment')->getInfoBlock($order->getPayment())
        	->setIsSecureMode(true);
        	$paymentBlock->getMethod()->setStore($storeId);
        	$paymentBlockHtml = $paymentBlock->toHtml();
    
        	$emailTemplateVariables = array(
                'order'        => $order,
                'billing'      => $order->getBillingAddress(),
                'payment_html' => $paymentBlockHtml
            );
    1. Where does this code go?! I like the look of this extension, but of course need the payment method in the notification email. I’m using 1.9.

    2. So I worked out the answer to my own question (took me a while!):
      Put the above code snippet near the beginning of the function sendNotificationEmailToAdmin in /app/code/community/Inchoo/AdminOrderNotifier/Model/Observer.php.
      You also need to change the following line later on the function, from:
      $mailer->setTemplateParams(array(
      ‘order’ => $order,
      ));
      To:
      $mailer->setTemplateParams($emailTemplateVariables);

    3. Following Catherine’s instructions, the first block of code should be placed just after…

      try {

      around line 48.

  11. Hi,

    I really love this piece of work!

    Unfortunately the ‘payment’ method is not shown in this e-mail. It’s a bit strange, because it does appear in the ‘regular’ confirmation.

    In both templates {{var payment_html}} is used to pick up the info.

    Do you have any clue on this issue?

    Kind regards and keep up the good work,
    Andrew

    ps: i’m on magento CE 1.8.1

  12. hi,

    i have created click and collect shipping method and I need when is that shipping method selected to send email to chosen store. I have store email saved in shipping address (extra field not seen on frontend but saved with shipping address collection).

    I want to use your plugin but where should I add part to check if it is click and collect to send extra email?

  13. ^
    EDIT

    Just use

    {{var order.getPayment().getMethodInstance().getTitle()}}

    as the payment method variable, that works.

  14. Thanks! Module works perfect (on my CE 1.6.2.0), only the payment method is not appearing in the e-mail, like it’s mentioned in the above comment. Would be really great if this can be fixed…

  15. hello and thanks for this module, I have only one problem: they do not appear in the email sent to admin your payment information, despite having correctly set the template. How can I fix? I have a multi-store and all other information instead appear correctly
    thanks

  16. @vishal Works fine for me on Magento CE 1.7.0.2. Do you see the extension’s “Inchoo_AdminOrderNotifier” name under System > Configuration > Advanced > Advanced > Disable Modules Output? Do the /app/locale/en_US/template/email/inchoo_adminOrderNotifier.html and /app/code/community/Inchoo/AdminOrderNotifier/etc/config.xml files exist? Are you using Windows or Linux/OSX system? Maybe camel case file names are causing the issues for you. Hope these hints helps. Cheers.

  17. bro, buts its not coming in drop down list of load default template->Inchoo Admin Order Notifier
    i folloed the procedure( I copied your app folder into my root directory(i merged it with my app directory)), index management is disabled,cache is also refrshed. yet its not coming into the drop down list of load default template.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <blockquote cite=""> <code> <del datetime=""> <em> <s> <strike> <strong>. You may use following syntax for source code: <pre><code>$current = "Inchoo";</code></pre>.

Tell us about your project

Drop us a line. We'd love to know more about your project.