在 Prestashop 凭证代码输入中添加占位符文本
Adding placeholder text in voucher code input Prestashop
我在凭证输入框中添加占位符文本有些困难。
可以在以下link找到该页面:
Order Page
该网站是使用 Prestashop 1.6.17 构建的。
我想在图片下方的白色输入框中添加'Enter voucher code here',as shown in this picture.
我在 html 中添加了一个字符串 - 占位符文本 - 带有 chrome 检查功能:
<input type="text" class="discount_name form-control" id="discount_name" name="discount_name" value="" placeholder="insert voucher code here">
但是我不知道在 Prestashop 中修改哪里,因为没有这样的 html 页面可供查找。有人有想法吗?
非常感谢
您需要编辑 themes/your_theme/shopping-cart.tpl
并编辑凭证输入。
如果启用了缓存,请确保之后清除缓存。
Here是默认主题的凭证输入。根据您在默认主题中的税收和价格设置,输入不止一个。
您的主题可能不同,但应该在同一个文件中。
我在凭证输入框中添加占位符文本有些困难。
可以在以下link找到该页面: Order Page
该网站是使用 Prestashop 1.6.17 构建的。
我想在图片下方的白色输入框中添加'Enter voucher code here',as shown in this picture.
我在 html 中添加了一个字符串 - 占位符文本 - 带有 chrome 检查功能:
<input type="text" class="discount_name form-control" id="discount_name" name="discount_name" value="" placeholder="insert voucher code here">
但是我不知道在 Prestashop 中修改哪里,因为没有这样的 html 页面可供查找。有人有想法吗?
非常感谢
您需要编辑 themes/your_theme/shopping-cart.tpl
并编辑凭证输入。
如果启用了缓存,请确保之后清除缓存。
Here是默认主题的凭证输入。根据您在默认主题中的税收和价格设置,输入不止一个。
您的主题可能不同,但应该在同一个文件中。