| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Subcategories Icon | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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! |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Subcategories Icon
Quote:
Try this for "subcategories.tpl" Code:
you can see it in action here: http://www.bitsnspurs.com/store/customer/home.php?cat=13 if you need 3 columns chnage Code:
Code:
|
|||||||||
#3
|
|||||||
|
|||||||
|
|||||||
#4
|
|||||||
|
|||||||
Thank you.
|
|||||||
#5
|
|||||||
|
|||||||
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?
__________________
Matt X-Cart Gold 4.0.11 Apache 1.3.29 (Unix) PHP 4.3.4 |
|||||||
#6
|
|||||||
|
|||||||
anyone?
__________________
Matt X-Cart Gold 4.0.11 Apache 1.3.29 (Unix) PHP 4.3.4 |
|||||||
#7
|
|||||||||
|
|||||||||
Quote:
I updated the code above to show products or category counts after category description. I did not have a chance to test it. |
|||||||||
#8
|
|||||||
|
|||||||
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
__________________
Matt X-Cart Gold 4.0.11 Apache 1.3.29 (Unix) PHP 4.3.4 |
|||||||
#9
|
|||||||
|
|||||||
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:
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
__________________
Chris Dildy |
|||||||
#10
|
|||||||||
|
|||||||||
Quote:
You can assign icon to each category in "Categories" interface. If you are using v4.X.X you will have to change Code:
to Code:
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|