Quote:
Originally Posted by magnifold
I'm usig x-cart gold 4.0.13 and ths script works fine.
|
Defiantly an improvement than the default menu list, but I wanted all of the mfr's listed and the other mfr. link removed. I also truncated long mfr names to keep the drop down menu small.
kudos!
Code:
{if $manufacturers_menu ne ''}
{capture name=menu}
<FORM NAME="formManufacturer">
<SELECT NAME="listManufacturer" onchange="window.location=this.options[selectedIndex].value">
<OPTION VALUE="">Select Mfr.</OPTION>
{section name=mid loop=$manufacturers}
{if $manufacturers[mid].manufacturerid ne 0}
<OPTION VALUE="manufacturers.php?manufacturerid={$manufacturers[mid].manufacturerid}"><font class="VertMenuItems">{$manufacturers[mid].manufacturer|truncate:25:"..."}</font></OPTION>
{/if}
{/section}
</SELECT>
</FORM>
{*if $show_other_manufacturers}
{$lng.lbl_other_manufacturers}
{/if*}
{/capture}
{include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_manufacturers menu_content=$smarty.capture.menu}
{/if}