【问题标题】:Prestashop, display information in function of product IDPrestashop,产品ID功能中显示信息
【发布时间】:2017-04-21 16:54:59
【问题描述】:

我使用 Prestashop 1.4(针对客户的要求),但我需要在产品 ID 的功能中使用 css 类。

我试试这个:

<header class="header {if $page_name == 'index' || $page_name == 'product' && $product->id_product== 2}transparent{/if}">
</header>

但那是行不通的。我尝试从家庭类别中获取子类别#2。请问有什么办法吗?

【问题讨论】:

    标签: smarty prestashop


    【解决方案1】:

    试试:

    <header class="header {if ($page_name == 'index' || $page_name == 'product') && $marty.get.id_product== 2}transparent{/if}">
    </header>
    

    【讨论】:

    • 抱歉测试:
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-07-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-12-17
    相关资源
    最近更新 更多