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.
<?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') . " "; 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>
以上是关于OCA U详细订单管理电子邮件通知(1.5.2)vQmod-仅适用于1.5.6.4 OpenCart v1.5.x的主要内容,如果未能解决你的问题,请参考以下文章
在 WooCommerce 电子邮件通知的订单详细信息表中隐藏自定义费用行
向管理员发送电子邮件通知,了解 WooCommerce 中的待处理订单状态
将Django Choices表单字段的详细名称传递给查看上下文