View Single Post
  #1  
Old 11-16-2004, 07:57 PM
 
mffowler mffowler is offline
 

X-Adept
  
Join Date: Mar 2003
Location: Melbourne, Australia
Posts: 811
 

Default Manufacturers in a dropdown

In an endless effort to make X-Cart less obsessed with column menus (new feature=new column menu), I put the manufacturers in a dropdown selector. Just a cut and paste of codes, but maybe someone can use the solution. The "if" statement is in there, so manufacturers should be enabled or disabled in "Modules" respectively.

Be sure to keep the "absolute" URL in value, as the links won't work correctly when in the html catalog. I'm using it in the head.tpl inside one of the tables <TD> tag sets.

Code:
{if $manufacturers_menu ne ''} <form name="ManufacturerMenu"> <select onChange="location=this.options[this.selectedIndex].value;" style="font-size:11px; color:#333333; width:140px;"> <option>Shop By Manufacturer</option><option value="http://yourdomain.com/store/home.php">---------------------------</option> {section name=mid loop=$manufacturers_menu} <option value="http://yourdomain.com/store/manufacturers.php?manufacturerid={$manufacturers_menu[mid].manufacturerid}">{$manufacturers_menu[mid].manufacturer}</option> {/section} </select> </form> {else} {/if}

- Mike
__________________
4.1.9
Reply With Quote