View Single Post
  #10  
Old 07-03-2008, 03:22 AM
  Rajdeep's Avatar 
Rajdeep Rajdeep is offline
 

Senior Member
  
Join Date: May 2007
Posts: 115
 

Default Re: Need Help ! Subcategory dropdown

Quote:
Originally Posted by ubergeek
Maybe try something like this?

In subcategories.tpl find the block of code starts at or near 16 and end at 33

Code:
{if $subcategories} <table cellspacing="5" width="100%"> {foreach from=$subcategories item=subcat} <tr> {if $tmp and $first_subcat ne "Y"} <td valign="top" rowspan="{count value=$subcategories print="Y"}"><img src="{if $current_category.icon_url}{$current_category.icon_url}{else}{$xcart_web_dir}/image.php?id={$cat}&amp;type=C{/if}" alt="" /></td> {assign var="first_subcat" value="Y"} {/if} <td class="SubcatTitle"><a href="home.php?cat={ $subcat.categoryid }"><font class="ItemsList">{ $subcat.category|escape }</font></a><br /></td> <td class="SubcatInfo">{if $config.Appearance.count_products eq "Y"} {if $subcat.product_count}{ $subcat.product_count } {$lng.lbl_products} {elseif $subcat.subcategory_count}{ $subcat.subcategory_count } {$lng.lbl_categories|lower} {/if} {/if}</td> </tr> {/foreach} </table> {/if}

Replace this if statement with the following:

[code]
{if $subcategories}
[TRUNCATED....]

Probably could be cleaned up some but it should get you close.



Hi ubergeek,

We are using fancy categories (Icons) options.. Could not find the codes as mentioned by you in the subcategories.tpl file.

Could you suggest alternates. Help would be appreciated.

Thanks in advance.....
__________________
X-Cart Pro 4.1.9
[Migrated from Gold 4.1.8 to Pro 4.1.9 - Feb 2008]
Add Ons: X-FancyCategories, X-Magnifier, X-FeatureComparison, X-SpecialOffers
Reply With Quote