| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Drop Down Menu For Categories | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Drop Down Menu For Categories
I have read a previous thread about creating a drop down menu for the categories.tpl. I am able to view the category drop down, but the text is not visible and when clicked on redirects to the home page. Code Shown Below...
{* $Id: categories.tpl,v 1.19 2003/11/11 14:02:32 svowl Exp $ *} {capture name=menu} {if $active_modules.Fancy_Categories ne ""} {include file="`$fancycategories_config.modules_path`/fancy_categories.tpl"} {else} {if $config.General.root_categories eq "Y"} <form name="form_cat" method="get" action="home.php"> <select name="cat" onChange="document.form_cat.submit()"> <option value="0" selected>Search By Category</option> {section name=cat_num loop=$categories} <option value="home.php?cat={$c.categoryid}">{$categories[cat_num].category}</option> {/section} </select> </form> {else} {section name=cat_num loop=$subcategories} <font class=CategoriesList>{ $subcategories[cat_num].category_name|escape }</font> {/section} {/if} {/if} {/capture} {include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu} |
|||||||
#2
|
|||||||
|
|||||||
Re: Drop Down Menu For Categories
Please don't post questions in the completed custom mods forum. Moving to Template Editing.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||||
|
|||||||||
Re: Drop Down Menu For Categories
Code:
Use this section code instead of your variant. |
|||||||||
#4
|
|||||||
|
|||||||
Re: Drop Down Menu For Categories
I am still getting the same issue. I have attached a screenshot. Basically the form box opens but the font is not visible and when clicked on it redirects me to a homepage and not to a specific category.
|
|||||||
#5
|
|||||||
|
|||||||
Re: Drop Down Menu For Categories
Code:
__________________
xcartmods.co.uk |
|||||||
#6
|
|||||||||
|
|||||||||
Re: Drop Down Menu For Categories
Yes, PhilJ is right. I've copied code of "section" and did not checked, is it right. There is foreach should be.
__________________
Regards, Anthony Holub X-Cart Skins Store - twenty two different skins available; - both 4.1.x and 4.2.x versions compatible; - refresh you store now! Smart menu X-Cart add-on Featured Products Slide Show X-Cart add-on "What's New?" FREE X-Cart add-on |
|||||||||
#7
|
|||||||
|
|||||||
Re: Drop Down Menu For Categories
Thanks alot guys! It works!
|
|||||||
#8
|
|||||||
|
|||||||
Re: Drop Down Menu For Categories
Does this work with SEO friendly URL's? When I change the drop down I get a domian.com/?cat=285 instead of what it should be.
__________________
x-cart-4.1.8gold |
|||||||
|
|||
X-Cart forums © 2001-2020
|