View Single Post
  #1  
Old 12-21-2010, 03:11 PM
 
sparker2 sparker2 is offline
 

eXpert
  
Join Date: Feb 2007
Posts: 290
 

Default Category Dropdown Menu For vs 4.4.1

Hello, I am looking for help with this issue. I am in the process of upgrading my cart to 4.4.1 and I was trying to use some code that I had for my drop down category menu in version 4.3 but it is not working in vs 4.4.1. Can someone please help me convert this code to work with version 4.4.1? As you will notice in the code, I do not want any categories with Id's higher then 899 showing up in the list. Remember this code came from version 4.3 and earlier and I need to use it in version 4.4.1. It worked great before in previous versions.

Thank you very much in advance for your help. Merry Xmas to all! Shareen

{*
$Id: categories.tpl,v 1.35 2009/05/12 07:37:15 max Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
<div class="search">
<div class="valign-middle">

{if $active_modules.Fancy_Categories ne ""}
{include file="modules/Fancy_Categories/categories.tpl"}
{assign var="fc_cellpadding" value="0"}
{else}
{if $config.General.root_categories eq "Y"}
<select name="listCategories" onchange="window.location=this.options[selectedIndex].value">
<option value=""><font class="VertMenuItems">Select A Design Category</font></option>
{foreach from=$categories item=c}
{if $c.order_by < 899 && $c.product_count ne 0}
<option value="home.php?cat={$c.categoryid}"><font class="VertMenuItems">{$c.category}</font></option>
{/if}
{/foreach}
</select>
{else} {foreach from=$subcategories item=c key=catid}
<font class="CategoriesList"><a href="home.php?cat={$catid}" class="VertMenuItems">{$c.category}</a></font><br />
{/foreach}
{/if}
{/if}
</form>

</div>
</div>
__________________
Shareen
sparker2@cox.net
http://www.stitches4u.com
X-Cart Version 4.5.0 with Smart Template vs 4.4.x
Reply With Quote