View Single Post
  #50  
Old 06-29-2006, 11:55 AM
 
marcelox7 marcelox7 is offline
 

Advanced Member
  
Join Date: Apr 2006
Posts: 38
 

Default Manufacturers menu drop down! By Marcelo

X-cart 4.1.1
1. Create manufactures.tpl in skin1/customer (blank file)

2. Now drop this code:

{* $Id: menu_manufacturers.tpl,v 1.5 2005/11/17 06:55:47 max Exp $ *}
{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>Search By Manufacturer</option>
{section name=mid loop=$manufacturers_menu}
<option value="{$manufacturers_menu[mid].manufacturerid}">{$manufacturers_menu[mid].manufacturer}</option>
{/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}

3. Save

4. In the skin1/customer/home.tpl change this line:

{ include file="modules/Manufacturers/menu_manufacturers.tpl" }
for this one
{ include file="customer/manufacturers.tpl" }

5. Done (works with php and html catalog)
__________________
X-cart 4.6.1
Reply With Quote