Posted By

cerxx on 08/25/18


Tagged

module opencart-15x-only vqmod


Versions (?)

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


 / Published in: XML
 

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

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

  1. <?xml version="1.0"?>
  2. -<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">
  3. <![CDATA[$mail = new Mail();]]>
  4. </search>-<add>
  5. <![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'); } ]]>
  6. </add></operation>
  7. <!-- 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> -->
  8. -<operation>-<search index="2" position="before">
  9. <![CDATA[$mail->setText(html_entity_decode($text, ENT_QUOTES, 'UTF-8'));]]>
  10. </search>-<add>
  11. <![CDATA[ $mail->setHtml($html); ]]>
  12. </add></operation></file></modification>

Report this snippet  

You need to login to post a comment.