如何在 opencart 2.0.1.1 中对奖励积分通知电子邮件应用 css 样式?
How to apply css styling on rewards points notification email in opencart 2.0.1.1?
当客户获得奖励积分时,他会收到电子邮件通知。
默认电子邮件仅包含以下行:
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.';
我需要在与我的 opencart 商店相关的电子邮件通知上应用一些 css 样式。我尝试在此 customer.php 语言文件中添加 html 和 css,但它不起作用。
我不知道如何应用我想要的样式。有帮助吗?
为此,您需要在语言文件中添加 html 标签 & css & css class。
例如:
$_['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.';
当客户获得奖励积分时,他会收到电子邮件通知。 默认电子邮件仅包含以下行:
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.';
我需要在与我的 opencart 商店相关的电子邮件通知上应用一些 css 样式。我尝试在此 customer.php 语言文件中添加 html 和 css,但它不起作用。 我不知道如何应用我想要的样式。有帮助吗?
为此,您需要在语言文件中添加 html 标签 & css & css class。
例如:
$_['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.';