好的,这应该是一个干净的解决方案,可以直接将您带到您需要的地方:
1.编辑catalog/language/<YOUR_LANGUAGE>/mail/order.php
行前的and(英文):
$_['text_new_greeting'] = 'Thank you for your interest in %s products. Your order has been received and will be processed once payment has been confirmed.';
添加这个
$_['text_title'] = 'Hello %s,';
2.打开catalog/model/checkout/order.php
-搜索方法confirm()
,然后找到行
$template->data['text_greeting'] = sprintf($language->get('text_new_greeting'), html_entity_decode($order_info['store_name'], ENT_QUOTES, 'UTF-8'));
在它添加这个之前:
$template->data['text_title'] = sprintf($language->get('text_titler'), html_entity_decode($order_info['payment_firstname'], ENT_QUOTES, 'UTF-8'));
我只想提一下,这应该做两次——一次用于 HTML 模板部分,一次用于 TEXT 模板部分(向下滚动一点用于 TEXT tpl 部分)。
3.打开catalog/view/theme/<YOUR_THEME>/template/mail/order.tpl
并找到该行:
<p style="margin-top: 0px; margin-bottom: 20px;"><?php echo $text_greeting; ?></p>
在它添加这个之前:
<p style="margin-top: 0px; margin-bottom: 20px;"><?php echo $text_title; ?></p>
现在你应该完成了。