View Single Post
  #1  
Old 12-13-2005, 12:16 PM
  SailorChick_33588's Avatar 
SailorChick_33588 SailorChick_33588 is offline
 

Newbie
  
Join Date: Nov 2005
Location: California
Posts: 8
 

Default Need to display a distinct category in a drop down menu

Hi out there,

I am about half-way through my first project using x-cart and since I am brand new to php I need some advice.

I want a drop down box on my home page that has only two of my 9 categories listed.

I have this code inserted into my index_new.tpl file:
Code:
<div align="center">[img]{$ImagesDir}/show_watches.gif[/img] <form name="form_brand" method="get" action="home.php"> <select onChange="this.form.submit()"> <option value="0" selected>Shop by Gender</option> {section name=cat_num loop=$categories} <option value="{$categories[cat_num].categoryid}">{$categories[cat_num].category}</option> {/section} </select> </form> </div>
The entire list of categories is displayed in the drop down. What I want is to only have the category ID's 258 & 250 show.

I'm hoping this is an easy thing that has been done before. I've searched the forums though and haven't found anything quite like what I am wanting to do. Any help would be greatly appreciated!!!

So far it seems like there is an answer to everything on these forums!

TIA
__________________
x-cart gold (unix)
Version 4.0.16
Reply With Quote