For those of you using DSEFU and Telefirma's image mod's:
THIS IS ONLY FOR RCOMMENDED PRODUCTS AND I"M USING 2 COLUMNS
recommends.php find:
Code:
$smarty->assign("recommends",$recommends);
Replace with:
Code:
foreach ($recommends as $i=>$item) {
$recommends[$i]["tmbn_url"] = func_get_thumbnail_url($item[productid]);
}
$smarty->assign("recommends",$recommends);
recommends.tpl should look like:
Code:
{if $recommends}
{capture name=recommends}
{section name=num loop=$recommends}
{ if %num.first% }
<table border=0 width=100%>{/if}
{ if %num.index% is div by 2}<tr>{/if}
<td width="50%" align="center" valign="center">
<a href="{seo_link prod_name=$recommends[num].product prod_id=$recommends[num].productid}">{include file="product_thumbnail.tpl" productid=$recommends[num].productid image_x=$config.Appearance.product_image_width product=$recommends[num].product tmbn_url=$recommends[num].tmbn_url alt=$recommends[num].product|escape}</a><br />
<SPAN><b><A href="{seo_link prod_name=$recommends[num].product prod_id=$recommends[num].productid}">{$recommends[num].product}</A></b></SPAN>
</td>
{ if %num.last% }</tr>
</table>{/if}
{/section}
{/capture}
{include file="dialog.tpl" title=$lng.lbl_recommends content=$smarty.capture.recommends extra="width=100%"}
{/if}
If you want 3 columns change { if %num.index% is div by
2} to a
3 and <td width="
50%" align="center" valign="center"> to
33%