【问题标题】:Prestashop 1.7, where notifications are stored?Prestashop 1.7,通知存储在哪里?
【发布时间】:2017-09-04 23:00:05
【问题描述】:

我在 Prestashop 1.7 中的通知有一点问题。

它是这样显示的:

"Brak dostępnych adresów. <a href="https://morelowaszafa.pl/adres">Dodaj nowy adres</a>"

应该这样显示:“Brak dostępnych adresów.Dodaj nowy adres”

但不知何故,它显示了所有锚点...我发现在页面源中有 &amp;lt; 而不是 &lt; 和 &amp;gt; 而不是 &gt;

但我不知道在哪里可以找到它并进行更改。 感谢您的帮助!

【问题讨论】:

    标签: notifications prestashop


    【解决方案1】:

    编辑文件themes/classic/templates/_partials/notifications.tpl

    并替换:

    <li>{$notif}</li>
    

    与:

    <li>{$notif nofilter}</li>
    

    来源:https://github.com/PrestaShop/PrestaShop/pull/7554/files

    【讨论】:

    • 这也行,如果你喜欢我可以接受你的答案,只需用要编辑的文件名编辑它并在哪里做。
    • 我喜欢它,因为它已经正式提交了 :) github.com/PrestaShop/PrestaShop/pull/7554
    • 是的,它看起来更干净:)
    【解决方案2】:

    我找到了解决方法。

    在主题\classic\templates_partials\notifications.tpl中

    从以下位置编辑第 46 行:

    <li>{$notif}</li>
    

    到:

    <li>{$notif|@print_r|substr:0:-1}</li>
    

    在这里找到答案:http://forge.prestashop.com/browse/BOOM-3033

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-08-29
      • 2013-04-14
      • 1970-01-01
      • 2011-08-14
      • 2023-04-03
      • 2018-04-29
      • 2010-11-02
      • 2016-10-22
      相关资源
      最近更新 更多