View Single Post
  #3  
Old 10-25-2008, 04:43 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: drop down box for manufacturers?

Depending how many manufacturers you have even a drop down box may not be the answer. We use a scroll box instead. Here is our menu_manufacturers.tpl (v4.1.10 but should work for you also). It goes in skin1/modules/Manufacturers/menu_manufacturers.tpl
Code:
{* $Id: menu_manufacturers.tpl,v 1.1.2.7 2008/04/17 05:45:57 max Exp $ *} {if $manufacturers_menu ne ''} {capture name=menu} <form name="form_manuf" method="get" action="manufacturers.php"> <select size="12" name="manufacturerid" onchange="document.form_manuf.submit()"> {section name=mid loop=$manufacturers_menu} <option value="{$manufacturers_menu[mid].manufacturerid}">{$manufacturers_menu[mid].manufacturer|truncate:18:"...":true}</option> {/section} </select> </form> {/capture} {include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_manufacturers menu_content=$smarty.capture.menu} {/if}

Changing the number in "select size=" will adjust how many manufacturers are displayed at one time, and "truncate:18:"...":true" will adjust the length of the manufacturers name displayed.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote