To get the
manufacturer icons to show up in the manufacturers list (not the menu- the full page) was pretty simple, but getting them into columns was not that easy ... so I based it on the subcategories table and the manufacturers menu. The code below does not have the title or dialog.tpl, but you can add that in ...
Just change the
4 in
Code:
{ if %mid.index% is div by 4}
to the number of columns that you desire: 2, 3 etc. and replace the following templates code with:
Modules/Manufacturers/customer_manufacturers_list.tpl:
Code:
{* $Id: customer_manufacturers_list.tpl,v 1.3 2004/05/28 12:21:10 max Exp $ *}
{capture name=dialog}
{assign var="tmp" value="0"}
{section name=mid loop=$manufacturers}
{if $manufacturers[mid].manufacturerid}{assign var="tmp" value="1"}{/if}
{/section}
{section name=mid loop=$manufacturers}
{ if %mid.first% }
<table width="100%" border="0" align="center" cellpadding="5" cellspacing="0">
{/if}
{ if %mid.index% is div by 4}
<tr>
{/if}
<td align="center" valign="middle">
<table bgcolor="#FFFFFF" cellspacing="0" cellpadding="0" border="0"><tr><td height="70">
[img]mlogo.php?manufacturerid={$manufacturers[mid].manufacturerid}[/img]</td></tr>
<tr><td align="center" valign="middle">
<font size="3">{$manufacturers[mid].manufacturer}</font></td></tr></table>
</td>
{ if %mid.last% }
</tr>
</table>
{/if}
{/section}
{/capture}
{include file="dialog.tpl" content=$smarty.capture.dialog extra="width=100%"}
I then changed the {include} statement in /modules/Manufacturers/menu_manufacturers.tpl to:
Code:
{include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_manufacturers menu_content=$smarty.capture.menu link_href="manufacturers.php"}
so that it would link to the manufacturers page (the same way "Help" does).
It is not based on the quantity of manufacturers enabled in General Settings/Module Options, so all of your manufactureres are included. Also, if you deactivate any in the manufacturers settings, then they will be deactivated ...
If anyone has any improvements to this, I would love to incorporate them.
- Mike