View Single Post
  #41  
Old 05-12-2010, 06:48 AM
 
pia pia is offline
 

Newbie
  
Join Date: Oct 2009
Posts: 6
 

Smile Re: Manufacturers Drop Down

I have this working in 4.3.1 with the following drop down code: (note... this is just a drop down not in a box as I have it in the header area)

Code:
<form name="form_manuf" method="get" action="manufacturers.php"> <select name="manufacturerid" onChange="document.form_manuf.submit()"> <option value="0" selected>Please Select Brand</option> {section name=mid loop=$manufacturers_menu} <option value="{$manufacturers_menu[mid].manufacturerid}">{$manufacturers_menu[mid].manufacturer|truncate:22:"...":true}</option> {/section} </select> </form>

To have it in a menu box use:

Code:
{if $manufacturers_menu ne ''} {capture name=menu} <form name="form_manuf" method="get" action="manufacturers.php"> <select name="manufacturerid" onChange="document.form_manuf.submit()"> <option value="0" selected>Please Select Brand</option> {section name=mid loop=$manufacturers_menu} <option value="{$manufacturers_menu[mid].manufacturerid}">{$manufacturers_menu[mid].manufacturer|truncate:22:"...":true}</option> {/section} </select> </form> {/if} {/capture} {include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_manufacturers menu_content=$smarty.capture.menu}
__________________
---
pia

x-cart 4.3.1
Reply With Quote