![]() |
Subcategories Icon
I am looking for some information that I thought I saw on here before.
Basically what I am trying to do is this... I have category listings down the side of the page. When a customer clicks on the category listings, the main body of the page is populated with a textual listing of the subcategoires. What I would like to do is modify the the customer/main/subcategories.tpl file so that instead of using text to list the subcat, it uses the subcat's icon. Also, I would like to list them in three columns across. Thanks for the help Trick Dog! |
Re: Subcategories Icon
Quote:
Try this for "subcategories.tpl" Code:
{* $Id: subcategories.tpl,v 1.29 2002/11/26 14:55:13 alfiya Exp $ *} you can see it in action here: http://www.bitsnspurs.com/store/customer/home.php?cat=13 if you need 3 columns chnage Code:
div by 2 Code:
div by 3 |
|
Thank you.
|
Doesn't that code remove the "x products" or "x categories" count on the right-hand side? Is there an easy way to combine graphic and count?
|
anyone?
|
Quote:
I updated the code above to show products or category counts after category description. I did not have a chance to test it. |
That worked. I made some format changes, and moved some stuff around, but it worked as posted and you can see it here, with my changes:
http://www.raiseyourpulse.com/customer/home.php?cat=262 |
Ok, this is exactly what i've been looking for! But there is something i don't get in regrads to have sub-category icons:
How do I get the Icons to show for each sub category? I notied the code went like this: Code:
[img]../icon.php?categoryid={$subcategories[cat_num].categoryid}[/img] But i have no idea where i put the icon images and how i link them to that img src (../icon.php?categoryid={$subcategories[cat_num].categoryid})? If i'm missing something, can someone please feel me in. Thank you |
Quote:
You can assign icon to each category in "Categories" interface. If you are using v4.X.X you will have to change Code:
<img src="../icon.php to Code:
<img src="icon.php |
All times are GMT -8. The time now is 11:55 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.