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)
-   -   subcategory list on home (https://forum.x-cart.com/showthread.php?t=7074)

germansupplyscott 02-02-2005 12:47 PM

Thanks for the mod! this is great.

Works great in 3.3.1

I also like the subcategories mod discussed here:
http://forum.x-cart.com/viewtopic.php?t=4248

cymont 03-12-2006 02:10 PM

Re: Always display subcategories in 4.0.x
 
Quote:

Originally Posted by joshf
Here's what worked for me in 4.0.x:

In skin1/customer/categories.tpl:

1. Find the following line:
Code:

<FONT class="CategoriesList">{$categories[cat_num].category}</FONT>
2. Insert the following code AFTER the line you just found:
Code:

{section name=sub_num loop=$allcategories}
{if $allcategories[sub_num].parentid == $categories[cat_num].categoryid}
<FONT class="CategoriesList">- {$allcategories[sub_num].category}</font>

{/if}
{/section}

3. Save and refresh.


One,
jf



It doesn't work on 4.0.18

wildelectronics 10-20-2006 11:00 AM

Re: subcategory list on home
 
Hi,

Thanks for your help, it's great.

Do you know how I can bold the main categories names?

Regards Kurt

wildelectronics 10-20-2006 11:45 AM

Re: subcategory list on home
 
Ooops, sorry.

I'd also like to know how I can space the text more, and have thumbnails assigned to each one above or below?

I've noticed the main categories are no longer text links. I would like to know how I can make them text links with the same functionality as normal. You click the main category and the subcats will be there, along with any products. Categories such as Pet Electronics do not have sub cats, and the main category is no an active link, which means people cannot see them.

Any ideas on how I can achieve this?


All times are GMT -8. The time now is 05:31 AM.

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