2013-04-25 49 views
0

我想要顯示家用特色產品的功能。Prestashop - 顯示家用特色產品的數量和功能

在homefeatured.tpl,我說:

<!-- features --> 
{foreach from=$products->features item=feature} 
    <!-- wine --> 
    {if $feature.id_feature eq 7} 
     <p class="feature-wine"><a href="{$products->product_link}" title="{$products->name|escape:html:'UTF-8'}">{$feature.value|escape:'htmlall':'UTF-8'}</a></p> 
    {/if} 
{/foreach} 

但它不工作...你有什麼想法?

回答

0

您需要修改homefeatured.php以從模型中獲取此變量並通過Smarty將它傳遞給Smarty - > assign()

0

homefeatured模塊不會將這些變量發送到模板。

我的建議是複製這個模塊來創建你的並添加這些值。