| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
sub category icon | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
sub category icon
I go to modify my subcategorys and there is a place where i can input an icon.
but why doesnt it show up when i add the icon? anyone, bueler? |
|||||||
#3
|
|||||||
|
|||||||
in the standard set up the category icon does not appear unless there are subcategories of that category.
__________________
ex x-cart guru |
|||||||
#4
|
|||||||
|
|||||||
I have the same problem.
|
|||||||
#5
|
|||||||
|
|||||||
Ok, I see what is happening now, the parent categories icon is what will appear when you select a sub category...
When I click on my parent category I want this example to happen: http://www.motorsport-depot.com/xcart/customer/home.php?cat=57 How do I get that, eh? |
|||||||
#6
|
|||||||
|
|||||||
boomer, i just got x-cart like a month and a half ago. so im pretty sure i have the newest version of it.
i am able to upload images fine. in the main categoy, i upload an image and when the subcategories pop up, thats when i see the main category image (if that makes any sense). i see why its working that way and i understand that its supposed to work like that, but i am curious to add an icon to each subcategory that will actually show up next to the subcategory (from within the main category section) glenn m has got it! he poses the question very precisely! thanks for the help everyone |
|||||||
#7
|
|||||||
|
|||||||
Subcategory Icon
how can I assign one icon for every subcategory instead of one for a whole category ?
|
|||||||
#8
|
|||||||
|
|||||||
here you go!
Try adding this tag to the top of subcategories.tpl; after the include tag:
{ include file="location.tpl" } http://www.yourcompany.com/xcart/icon.php?categoryid={$cat}&rand={$rand} Worked for me! |
|||||||
#9
|
|||||||||
|
|||||||||
Using image.php to call every subcat and cat icons from the db can be very costly. Remember the browser won't cache any of the image data coming from the database, so if your using such code on the main cat or subcat, you will notice a somewhat larger load on the server. The best method for this is to remove the category icons from using the database and using the file system so they are cached within the browser.
anyhow, just a tip.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
#10
|
|||||||
|
|||||||
Novice..Only displays on first sub item.
I tried the code above to no success becuase I have customized subs catagory. I designate an icon for the main catagory and it shows up on the sub catagory. Everytime I try to modify the sub catagory to include an icon, it just creates a main catagory. My concern is this, I can only get the icon to show up on the first sub catagory and no others, Here is my subcatagories.tpl code:
Code:
http://www.pfgpromotionals.com |
|||||||
|
|||
X-Cart forums © 2001-2020
|