So I have been trying to match the "Customers who bought this..." mod to the format of the "Manufacturer's mod" and cant figure it out for the life of me.
Here is the code:
Quote:
{if $also_bought_products|@count gt 0} {capture name=also_bought}
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
{section name=i loop=$also_bought_products}
{* SAFETYNET DSEFU MOD *}
{if $enable_seo_links == "Y"}
<td width="20%" valign="top"><div style="border:1px solid #ccc;padding:5px;margin:5px; text-align:center">
<p style="margin-top: 0; margin-bottom: 0"><b><A href="{seo_link prod_name=$also_bought_products[i].product prod_id=$also_bought_products[i].productid}" target="{$targetwin}">{$also_bought_products[i].product}</a></b></p>
<p style="margin-top: 0; margin-bottom: 0"><A href="{seo_link prod_name=$also_bought_products[i].product prod_id=$also_bought_products[i].productid}" target="{$targetwin}">{include file="product_thumbnail.tpl" image_x=100 productid=$also_bought_products[i].productid product=$also_bought_products[i].product tmbn_url=$also_bought_products[i].tmbn_url}</a></div></td>
{else}
{/if}
{* END SAFETYNET DSEFU MOD *}
</tr>
{/section}
</table>
{/capture} {include file="dialog.tpl" title="Customers who bought this also bought..." content=$smarty.capture.also_bought extra="width=100%"}{/if}
|
What would need to be changed to make this match the manufacturer's mod format with 5 products in a row? Is it simply a "for each" argument or something more?