【问题标题】:Adding placeholder text in voucher code input Prestashop在凭证代码输入 Prestashop 中添加占位符文本
【发布时间】:2018-04-20 23:22:25
【问题描述】:

在我的凭证输入框中添加占位符文本有些困难。

该页面可在以下链接中找到: Order Page

网站使用 Prestashop 1.6.17 构建。

我想在图片下方的白色输入框中添加“在此处输入优惠券代码”as shown in this picture.

我在带有 chrome 检查功能的 html 中添加了一个字符串 - 占位符文本:

<input type="text" class="discount_name form-control" id="discount_name" name="discount_name" value="" placeholder="insert voucher code here">

但是我不知道在 Prestashop 中在哪里修改,因为没有这样的 html 页面可供查找。有人有想法吗?

非常感谢

【问题讨论】:

    标签: text prestashop-1.6 placeholder inputbox


    【解决方案1】:

    您需要编辑themes/your_theme/shopping-cart.tpl 并编辑凭证输入。 如果启用了缓存,请确保之后清除缓存。

    Here 是默认主题的凭证输入。根据您在默认主题中的税金和价格设置,输入不止一个。

    您的主题可能不同,但应该在同一个文件中。

    【讨论】:

    • @franfran00 如果它解决了您的问题,请接受答案。
    • 对不起,我不知道(我是新人)——我现在接受了!再次感谢您!
    猜你喜欢
    • 1970-01-01
    • 2018-10-07
    • 2015-10-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-07-02
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多