View Single Post
  #43  
Old 08-01-2005, 01:23 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

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}
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote