【问题标题】:Show reduction end date prestashop显示减少结束日期 prestashop
【发布时间】:2015-10-09 22:52:18
【问题描述】:

我想为 prestashop 中的产品减少创建一个倒计时系统。所以我需要显示减少的结束日期。 我用这些行修改了 product.tpl:

 {if ($product->reduction_to)}
    <p id="reduc">{$product->reduction_to|date_format:'%d %B %Y'} </p>
{/if}

但是什么也没发生。产品页面未修改。我的代码有错误吗?

我正在使用最新版本的 prestashop 的全新安装。

谢谢!

【问题讨论】:

    标签: prestashop prestashop-1.6


    【解决方案1】:

    使用{$product-&gt;specificPrice.to|date_format:'%d %B %Y'}

    【讨论】:

    • 好的,谢谢。我在文档中找到了$product-&gt;reduction_to。奇怪的。谢谢!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-03-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-06-24
    相关资源
    最近更新 更多