0
我使用Prestashop 1.4(针对客户的需求),但我需要使用产品ID的函数中的css类。Prestashop,在产品ID的功能中显示信息
我试试这个:
<header class="header {if $page_name == 'index' || $page_name == 'product' && $product->id_product== 2}transparent{/if}">
</header>
但这不起作用。我尝试从家庭类别中获得子类别#2。请任何想法吗?
谢谢你,不幸的是这不工作 – Jandon
对不起测试用:<标题类=“{头如果($ PAGE_NAME == '指数' || $ PAGE_NAME ==“产品')&& $ smarty.get.id_product == 2} transparent {/ if}“> – ethercreation