{"id":198,"date":"2026-11-04T22:41:04","date_gmt":"2026-11-04T17:11:04","guid":{"rendered":"https:\/\/shop.wayanad.co.in\/blog\/?p=198"},"modified":"2026-11-04T22:50:06","modified_gmt":"2026-11-04T17:20:06","slug":"how-to-fix-opencart-3-0-4-0-send-full-html-order-status-emails-to-store-admin","status":"publish","type":"post","link":"https:\/\/shop.wayanad.co.in\/blog\/2026\/11\/how-to-fix-opencart-3-0-4-0-send-full-html-order-status-emails-to-store-admin\/","title":{"rendered":"How to fix OpenCart 3.0.4.0: Send full HTML order &amp; status emails to store admin"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If you run an OpenCart 3.0.4.0 store, you\u2019ve probably noticed a frustrating quirk: <strong>Customers get a gorgeous, detailed HTML order confirmation and status update email, while the store admin gets a stripped-down, plain-text alert.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you want your admin inbox to receive the exact same clean, comprehensive HTML order processing and update emails as your customers, this guide and free OCMOD will solve it instantly.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The problem with default OpenCart Admin emails<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Out of the box, OpenCart handles emails via event-driven controllers in <code>catalog\/controller\/mail\/order.php<\/code>:<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li><strong><code>add()<\/code><\/strong> fires the rich HTML invoice (<code>mail\/order_add<\/code>) to the customer.<\/li>\n\n\n\n<li><strong><code>edit()<\/code><\/strong> sends the status update notification (<code>mail\/order_edit<\/code>) to the customer.<\/li>\n\n\n\n<li><strong><code>alert()<\/code><\/strong> fires a basic plain-text notification to the store owner.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Most older OCMODs fail on OpenCart 3.0.4.0 because they try to hook into legacy model files (<code>catalog\/model\/checkout\/order.php<\/code>) which no longer house the primary email-dispatch logic in newer 3.x releases.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The solution: A lightweight OCMOD for OpenCart 3.0.4.0<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This simple OCMOD intercepts the mail controller right after the customer&#8217;s email is built and automatically dispatches a copy to your primary store admin email (<code>config_email<\/code>) and any additional alert addresses you&#8217;ve configured.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1. The OCMOD XML Code (<code>admin_customer_order_email.ocmod.xml<\/code>)<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">If you want to create the file manually, save the following code as <strong>admin_customer_order_email.ocmod.xml<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-color has-white-background-color has-text-color has-background has-link-color wp-elements-d0bf7923010e7569d97b758e0b69582b\"><code>&lt;?xml version=\"1.0\" encoding=\"utf-8\"?>\n&lt;modification>\n    &lt;name>Send Customer Order Processing &amp;amp; Update Emails to Admin&lt;\/name>\n    &lt;code>admin_customer_order_email_copy&lt;\/code>\n    &lt;version>1.0.0&lt;\/version>\n    &lt;author>Ethweb Datacomm&lt;\/author>\n    &lt;link>https:\/\/ethwebs.net&lt;\/link>\n\n    &lt;file path=\"catalog\/controller\/mail\/order.php\">\n        &lt;!-- 1. Send the full HTML New Order (Processing) email to Admin -->\n        &lt;operation>\n            &lt;search>&lt;!&#91;CDATA&#91;$mail->setHtml($this->load->view('mail\/order_add', $data));]]>&lt;\/search>\n            &lt;add position=\"replace\" offset=\"1\">&lt;!&#91;CDATA&#91;$mail->setHtml($this->load->view('mail\/order_add', $data));\n            $mail->send();\n\n            \/\/ Send exact HTML copy to Store Admin\n            if ($this->config->get('config_email')) {\n                $mail->setTo($this->config->get('config_email'));\n                $mail->send();\n            }\n\n            \/\/ Send to any additional alert emails configured in Store Settings\n            $emails = explode(',', (string)$this->config->get('config_mail_alert_email'));\n            foreach ($emails as $email) {\n                $email = trim($email);\n                if ($email &amp;&amp; filter_var($email, FILTER_VALIDATE_EMAIL)) {\n                    $mail->setTo($email);\n                    $mail->send();\n                }\n            }]]>&lt;\/add>\n        &lt;\/operation>\n\n        &lt;!-- 2. Send Order Status Update (History) emails to Admin as well -->\n        &lt;operation>\n            &lt;search>&lt;!&#91;CDATA&#91;$mail->setText($this->load->view('mail\/order_edit', $data));]]>&lt;\/search>\n            &lt;add position=\"replace\" offset=\"1\">&lt;!&#91;CDATA&#91;$mail->setText($this->load->view('mail\/order_edit', $data));\n            $mail->send();\n\n            \/\/ Send copy of status update to Store Admin\n            if ($this->config->get('config_email')) {\n                $mail->setTo($this->config->get('config_email'));\n                $mail->send();\n            }\n\n            $emails = explode(',', (string)$this->config->get('config_mail_alert_email'));\n            foreach ($emails as $email) {\n                $email = trim($email);\n                if ($email &amp;&amp; filter_var($email, FILTER_VALIDATE_EMAIL)) {\n                    $mail->setTo($email);\n                    $mail->send();\n                }\n            }]]>&lt;\/add>\n        &lt;\/operation>\n    &lt;\/file>\n&lt;\/modification><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">How to Install<\/h3>\n\n\n\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-782b42aa-a003-424b-a1a2-61248a1d5b87\" href=\"https:\/\/shop.wayanad.co.in\/blog\/wp-content\/uploads\/2026\/11\/admin_order_email.ocmod_.zip\">admin_order_email.ocmod<\/a><a href=\"https:\/\/shop.wayanad.co.in\/blog\/wp-content\/uploads\/2026\/11\/admin_order_email.ocmod_.zip\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-782b42aa-a003-424b-a1a2-61248a1d5b87\">Download<\/a><\/div>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li><strong>Download the Package:<\/strong> Click and download the above zip file <em>(Note: Package your XML file into a zip archive with the extension <code>.ocmod.zip<\/code>)<\/em>.<\/li>\n\n\n\n<li><strong>Upload via Admin:<\/strong> Log into your OpenCart admin panel, navigate to <strong>Extensions -> Installer<\/strong>, and upload the <code>.ocmod.zip<\/code> file.<\/li>\n\n\n\n<li><strong>Refresh Modifications:<\/strong> Go to <strong>Extensions -> Modifications<\/strong> and click the blue <strong>Refresh<\/strong> button at the top right to compile the changes.<\/li>\n\n\n\n<li><strong>Pro-Tip:<\/strong> If you want to stop receiving the old, ugly plain-text alert emails, go to <strong>System -> Settings -> Your Store -> Mail tab<\/strong>, scroll down to <strong>Mail Alerts<\/strong>, and uncheck <strong>Orders<\/strong>.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Looking for more OpenCart fixes or budget friendly hosting?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If this tutorial solved your admin email headache, be sure to explore our online store at <strong><a href=\"https:\/\/shop.wayanad.co.in\" target=\"_blank\" rel=\"noreferrer noopener\">shop.wayanad.co.in<\/a><\/strong>\u2014running live on OpenCart\u2014where we offer curated local products, spice gift boxes, and specialty items straight from Wayanad.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Running your own OpenCart store on a budget? Power your e-commerce site with <strong><a href=\"https:\/\/ethwebs.net\" target=\"_blank\" rel=\"noreferrer noopener\">Ethwebs.net<\/a><\/strong>. We specialize in high-performance, cost-effective hosting tailored for small businesses, complete with professional business email accounts that you can instantly plug into OpenCart&#8217;s SMTP settings to ensure your order emails and customer notifications never land in the spam folder. Get in touch with us for reliable web solutions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you run an OpenCart 3.0.4.0 store, you\u2019ve probably noticed a frustrating quirk: Customers get a gorgeous, detailed HTML order confirmation and status update email, while the store admin gets&hellip;<\/p>\n","protected":false},"author":1,"featured_media":202,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,7],"tags":[61,63,11],"class_list":["post-198","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-opencart-tips","category-tech-updates","tag-admin-email","tag-download","tag-opencart"],"_links":{"self":[{"href":"https:\/\/shop.wayanad.co.in\/blog\/wp-json\/wp\/v2\/posts\/198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shop.wayanad.co.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shop.wayanad.co.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shop.wayanad.co.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shop.wayanad.co.in\/blog\/wp-json\/wp\/v2\/comments?post=198"}],"version-history":[{"count":9,"href":"https:\/\/shop.wayanad.co.in\/blog\/wp-json\/wp\/v2\/posts\/198\/revisions"}],"predecessor-version":[{"id":212,"href":"https:\/\/shop.wayanad.co.in\/blog\/wp-json\/wp\/v2\/posts\/198\/revisions\/212"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/shop.wayanad.co.in\/blog\/wp-json\/wp\/v2\/media\/202"}],"wp:attachment":[{"href":"https:\/\/shop.wayanad.co.in\/blog\/wp-json\/wp\/v2\/media?parent=198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shop.wayanad.co.in\/blog\/wp-json\/wp\/v2\/categories?post=198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shop.wayanad.co.in\/blog\/wp-json\/wp\/v2\/tags?post=198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}