Return to Snippet

Revision: 73896
at August 25, 2018 20:39 by cerxx


Initial Code
<?xml version="1.0"?>
-<modification><id>OCA_Detailed Order Admin Email Notification(1.5.2)</id><version>2.5</version><vqmver>1.0.0</vqmver><author>Joel - <a href="http://opencartaddons.com" target="_blank">http://opencartaddons.com</a> - [email protected]</author>-<file name="catalog/model/checkout/order.php">-<operation>-<search index="2" position="before">
<![CDATA[$mail = new Mail();]]>
</search>-<add>
<![CDATA[ // HTML Mail $template->data['text_greeting'] = $language->get('text_new_received') . "\n\n"; if ($comment) { $template->data['comment'] = $comment; } else { $template->data['comment'] = ''; } $template->data['text_download'] = ''; $template->data['text_footer'] = ''; $template->data['text_powered'] = ''; $template->data['text_link'] = ''; $template->data['link'] = ''; $template->data['download'] = ''; $template->data['ip'] = $order_info['ip'] . '<br/><b>' . $language->get('text_new_order_status') . '</b> ' . $order_status; if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/mail/order.tpl')) { $html = $template->fetch($this->config->get('config_template') . '/template/mail/order.tpl'); } else { $html = $template->fetch('default/template/mail/order.tpl'); } ]]>
</add></operation>
<!-- Obsolete <operation> <search position="replace" index="2"><![CDATA[$mail->protocol = $this->config->get('config_mail_protocol');]]></search> <add><![CDATA[ ]]></add> </operation> <operation> <search position="replace" index="2"><![CDATA[$mail->parameter = $this->config->get('config_mail_parameter');]]></search> <add><![CDATA[ ]]></add> </operation> <operation> <search position="replace" index="2"><![CDATA[$mail->hostname = $this->config->get('config_smtp_host');]]></search> <add><![CDATA[ ]]></add> </operation> <operation> <search position="replace" index="2"><![CDATA[$mail->username = $this->config->get('config_smtp_username');]]></search> <add><![CDATA[ ]]></add> </operation> <operation> <search position="replace" index="2"><![CDATA[$mail->password = $this->config->get('config_smtp_password');]]></search> <add><![CDATA[ ]]></add> </operation> <operation> <search position="replace" index="2"><![CDATA[$mail->port = $this->config->get('config_smtp_port');]]></search> <add><![CDATA[ ]]></add> </operation> <operation> <search position="replace" index="2"><![CDATA[$mail->timeout = $this->config->get('config_smtp_timeout');]]></search> <add><![CDATA[ ]]></add> </operation> <operation> <search position="replace" index="2"><![CDATA[$mail->setFrom($this->config->get('config_email'));]]></search> <add><![CDATA[ ]]></add> </operation> <operation> <search position="replace" index="2"><![CDATA[$mail->setSender($order_info['store_name']);]]></search> <add><![CDATA[ ]]></add> </operation> -->
-<operation>-<search index="2" position="before">
<![CDATA[$mail->setText(html_entity_decode($text, ENT_QUOTES, 'UTF-8'));]]>
</search>-<add>
<![CDATA[ $mail->setHtml($html); ]]>
</add></operation></file></modification>

Initial URL
https://maxzon.ru/forum/cat-modules/topic-213.html#post-id-2426

Initial Description
Allow you to change the admin notification email to the same level of detail as the customer receives.

Initial Title
OCA_Detailed Order Admin Email Notification(1.5.2) vQmod - worked on 1.5.6.4 OpenCart v1.5.x only

Initial Tags
module

Initial Language
XML