X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Fancy Cats - Trying to show ALL cats + subcats by default (https://forum.x-cart.com/showthread.php?t=8912)

Scott DeToffol 10-19-2006 04:57 AM

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

wildelectronics 10-20-2006 10:40 AM

Re: Fancy Cats - Trying to show ALL cats + subcats by default
 
Why just the numbers?

Thanks :)

Scott DeToffol 10-20-2006 10:42 AM

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

wildelectronics 10-20-2006 11:38 AM

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


All times are GMT -8. The time now is 11:10 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.