LC_Page_FrontParts_Bloc_Recommend.php
foreach ($arrBestProducts as $key => $value) {
$arrRow =& $arrBestProducts[$key];
if (isset($arrProductList[$arrRow['product_id']])) {
$arrRow = array_merge($arrRow, $arrProductList[$arrRow['product_id']]);
$this->arrRelativeCat[$arrRow['product_id']] = SC_Helper_DB_Ex::sfGetMultiCatTree($arrRow['product_id']);
} else {
// 削除済み商品は除外
unset($arrBestProducts[$key]);
}
}
recommend.tpl
<!--{foreach from=$arrRelativeCat[$arrProduct.product_id] name=rc key=k item=i}-->
<!--{foreach from=$i name=rc2 key=k2 item=i2}-->
<a href="<!--{$smarty.const.ROOT_URLPATH}-->products/list.php?category_id=<!--{$i2.category_id|u}-->">
<!--{$i2.category_name|h}-->
</a>
<!--{if !$smarty.foreach.rc2.last}--><!--{$smarty.const.SEPA_CATNAVI}--><!--{/if}-->
<!--{/foreach}-->
<!--{/foreach}-->
上記で表示させることができました。
yuh様、AMUAMU様、ありがとうございました!