OCA U详细订单管理电子邮件通知(1.5.2)vQmod-仅适用于1.5.6.4 OpenCart v1.5.x

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了OCA U详细订单管理电子邮件通知(1.5.2)vQmod-仅适用于1.5.6.4 OpenCart v1.5.x相关的知识,希望对你有一定的参考价值。

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') . " "; 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>

以上是关于OCA U详细订单管理电子邮件通知(1.5.2)vQmod-仅适用于1.5.6.4 OpenCart v1.5.x的主要内容,如果未能解决你的问题,请参考以下文章

在 WooCommerce 电子邮件通知的订单详细信息表中隐藏自定义费用行

订单历史通知

向管理员发送电子邮件通知,了解 WooCommerce 中的待处理订单状态

将Django Choices表单字段的详细名称传递给查看上下文

在Woocommerce管理员,订单和电子邮件中显示自定义付款字段

在保存订单并发送 WooCommerce 电子邮件通知之前,将订单 ID 添加到订单项目元数据