Prestashop,在产品ID的功能中显示信息
问题描述:
我使用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。请任何想法吗?
答
尝试:
<header class="header {if ($page_name == 'index' || $page_name == 'product') && $marty.get.id_product== 2}transparent{/if}">
</header>
谢谢你,不幸的是这不工作 – Jandon
对不起测试用: – ethercreation