I have 2 Manufactures Menus in my store.
First is List of all manfactured which is set to 20 in admin, and the other one is the same except it uses icons for each brand instead of text and I want to set it to display only 10.
Here is my menu_manufactures_icon.tpl
Code:
{* $Id: menu_manufacturers.tpl,v 1.4 2004/06/22 05:38:52 max Exp $ *}
{capture name=dialog}
{if $manufacturers_menu ne ''}
<table width="249" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>[img]images/title_topbrands.gif[/img]</td>
</tr>
<tr>
<td class="topbrandsbox"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" width="29">[img]images/11.gif[/img]</td>
<td>
{assign var="tmp" value="0"}
{section name=mid loop=$manufacturers_menu}
{if $manufacturers[mid].manufacturerid}{assign var="tmp" value="1"}{/if}
{/section}
{section name=mid loop=$manufacturers_menu}
{ if %mid.first% }
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#F27929">
{/if}
{ if %mid.index% is div by 2}
<tr>
{/if}
<td align="left" valign="middle" class="topbrandsitem">
<table cellspacing="0" cellpadding="3" border="0" width="90">
<tr><td align="left" valign="middle">
[img]mlogo.php?manufacturerid={$manufacturers[mid].manufacturerid}[/img]</td></tr></table></td>
{ if %mid.last% }</tr>
</table>
{/if}
{/section}</td>
<td valign="top" width="25">[img]images/spacer.gif[/img]</td>
</tr>
</table></td>
</tr>
<tr>
<td class="border1">[img]images/spacer.gif[/img]</td>
</tr>
</table>
{/if}
Thank you.
--------------------
X-Cart Gold 4.0.16