1
嗨,我用这个代码来显示类别与相应的图像。我使用的Prestashop 1.4.4类别图像未显示在prestashop
<ul>
{foreach from=$blockCategTree.children item=child name=blockCategTree}
{if $smarty.foreach.blockCategTree.last}
{include file="$branche_tpl_path" node=$child last='true'}
{else}
{include file="$branche_tpl_path" node=$child}
{/if}
<img src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category')}" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage" />
{/foreach}
</ul>
通过观察使用Firebug src属性,它显示了像这个 - /prestashop/img/c/-category.jpg
,我想这样的路径以显示图像 - “/prestashop/img/c/6-category.jpg” 这里6是图像ID。我如何使用代码获取上面的url。