gpt4 book ai didi

html - 如何在 opencart 2.0.1.1 中的奖励积分通知电子邮件中应用 css 样式?

转载 作者:行者123 更新时间:2023-11-28 01:06:58 24 4
gpt4 key购买 nike

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

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 类。

例如:

$_['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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com