当客户获得奖励积分时,他会收到电子邮件通知。
默认电子邮件仅包含以下行:

You have received 200 Reward Points!

Your total number of reward points is now 200.

我知道这篇文章是在
/admin/language/english/mail/customer.php
$_['text_reward_received']      = 'You have received %s Reward Points!';
 $_['text_reward_total']         = 'Your total number of reward points is now %s.';

我需要对这个电子邮件通知应用一些css样式相对于我的opencart商店。我试着在这个customer.php语言文件中添加html和css,但是没有成功。
我不知道我该如何应用我想要的样式。有什么帮助吗?

最佳答案

为此,您需要在语言文件中添加html标记&css&css类。
例如:

$_['text_reward_received']      = 'You have received %s <span style="font-size:15px; color:red;">Reward Points</span>!';
$_['text_reward_total']         = 'Your <span class="mystyle">total number</span> of reward points is now %s.';

关于html - 如何在opencart 2.0.1.1中的奖励积分通知电子邮件上应用CSS样式?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/39338757/

10-11 00:17