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

Fancy Cats - Trying to show ALL cats + subcats by default

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 10-19-2006, 04:57 AM
 
Scott DeToffol Scott DeToffol is offline
 

Senior Member
  
Join Date: Apr 2005
Location: Minneapolis, MN
Posts: 174
 

Default Re: Fancy Cats - Trying to show ALL cats + subcats by default

X-Adept, your code ALMOST works for me.

Here's my categories.tpl

Quote:
{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"}
{section name=cat_num loop=$categories}
<FONT class="CategoriesList"><A href="home.php?cat={$categories[cat_num].categoryid}" class="VertMenuItems">{$categories[cat_num].category}</A></FONT><BR>
{/section}
{else} {section name=cat_num loop=$subcategories}
<FONT class="CategoriesList"><A href="home.php?cat={$subcategories[cat_num].categoryid}" class="VertMenuItems">{$subcategories[cat_num].category}</A></FONT><BR>
{/section}
{/if}
{/if}
{/capture}
{ include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu }

Whick gives me the correct first level categories. Second level shows the category number not the name and they are not in the correct place (should be 2-3 under each first level).

http://www.hellyhansenusa.com/images/cat_test.jpg
__________________
Scott DeToffol
Online Marketing and E-Commerce Consulting in Minneapolis

X-Cart Gold Version 4.1.9 for www.sundogtrading.com
X-Cart Pro Version 4.2.3 for www.heavyglare.com
Reply With Quote
  #12  
Old 10-20-2006, 10:40 AM
 
wildelectronics wildelectronics is offline
 

Member
  
Join Date: Apr 2004
Location: Sydney Australia
Posts: 21
 

Default Re: Fancy Cats - Trying to show ALL cats + subcats by default

Why just the numbers?

Thanks
__________________
Xcart version 3.5.5.
Reply With Quote
  #13  
Old 10-20-2006, 10:42 AM
 
Scott DeToffol Scott DeToffol is offline
 

Senior Member
  
Join Date: Apr 2005
Location: Minneapolis, MN
Posts: 174
 

Default Re: Fancy Cats - Trying to show ALL cats + subcats by default

Quote:
Originally Posted by wildelectronics
Why just the numbers?

That's my question, I don't want the category numbers, I want the category names
__________________
Scott DeToffol
Online Marketing and E-Commerce Consulting in Minneapolis

X-Cart Gold Version 4.1.9 for www.sundogtrading.com
X-Cart Pro Version 4.2.3 for www.heavyglare.com
Reply With Quote
  #14  
Old 10-20-2006, 11:38 AM
 
wildelectronics wildelectronics is offline
 

Member
  
Join Date: Apr 2004
Location: Sydney Australia
Posts: 21
 

Default Re: Fancy Cats - Trying to show ALL cats + subcats by default

Oh sorry.

I just managed to do this. www.wildelectronics.com.au/store/customer.

Notice the category area, it now has subcats visible.

However I want to know how to keep the main categories as links (as per normal) which will lead them to the page, where sub cats are visible, and products are too.

I'm also looking at ways of bolding the main cats, and adding images.

Would you know?

The mod was posted here: http://forum.x-cart.com/showthread.php?t=7074&highlight=subcategories+on+h ome
__________________
Xcart version 3.5.5.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 07:18 PM.

   

 
X-Cart forums © 2001-2020