Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

drop down box for manufacturers?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-24-2008, 01:33 AM
  crazyoval's Avatar 
crazyoval crazyoval is offline
 

X-Adept
  
Join Date: Jun 2006
Location: UK
Posts: 559
 

Default drop down box for manufacturers?

Hi guys, I have a growing list of manufacturers so I have reduced the clutter on my top page by enabling a single link on the top page to the manufacturers page.

Instead I would like to have a drop down box where a customer can choose the manufacturer they want from the top page.

Does anyone know how to do this? is it straight forward?

Thanks
__________________
X-Cart 4.1.11 on Linux
HandsOnWebHosting: Very helpful & professional
Custom Skin Design by ARS.
Numerous, ney, hundreds of modifications by ARS.
AlteredCart: Download Expander, One Page Checkout,
BCS Engineering: Great team, Top service.
WebsiteCM: good products & very professional
CDSEO, Hidden Categories, Custom Work
Magnetic One Store Manager: Brill
Forms To Go: Excellent+A+support
Reply With Quote
  #2  
Old 10-24-2008, 05:23 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: drop down box for manufacturers?

Code:
<form method="get" action="manufacturers.php"> <select style="width:100%;" name="manufacturerid" onchange="this.form.submit()"> <option value="0" selected>{$lng.lbl_manufacturers}...</option> {section name=mid loop=$manufacturers_menu} <option value="{$manufacturers_menu[mid].manufacturerid}">{$manufacturers_menu[mid].manufacturer}</option> {/section} </select> </form>
__________________
xcartmods.co.uk
Reply With Quote
  #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
  #4  
Old 10-25-2008, 04:08 PM
  crazyoval's Avatar 
crazyoval crazyoval is offline
 

X-Adept
  
Join Date: Jun 2006
Location: UK
Posts: 559
 

Default Re: drop down box for manufacturers?

Thanks guys!! :O)
__________________
X-Cart 4.1.11 on Linux
HandsOnWebHosting: Very helpful & professional
Custom Skin Design by ARS.
Numerous, ney, hundreds of modifications by ARS.
AlteredCart: Download Expander, One Page Checkout,
BCS Engineering: Great team, Top service.
WebsiteCM: good products & very professional
CDSEO, Hidden Categories, Custom Work
Magnetic One Store Manager: Brill
Forms To Go: Excellent+A+support
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:56 AM.

   

 
X-Cart forums © 2001-2020