| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Sub Category Listing | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Sub Category Listing
Ok, I have searched for it, but the samples I have found will obviously not work for 4.0x. or have to many modifications I do not wanna make
Anyhow, this is a sample how to get listed the subcats
1) Create a new folder within the modules directory called: user_mods 2) place inside of this folder the following code as sub_cats.php Code:
Code:
The good thing here is that you have to change the file categories.tpl only. Everything else is untouched and it is easy to extend some functions in there. I know, it's not the fine art of way to implement php within a smarty template, but it was the easiest way have fun
__________________
Thomas _______________________ X-Cart version 4.0.2 & xaffiliates PHP 4.1.2 MySQL 3.23.49 Web server Apache Operation system Debian Linux 3.0 Perl 5.006001 |
|||||||
#2
|
|||||||||
|
|||||||||
Nice mod. I'll give this a try shortly.
|
|||||||||
#3
|
|||||||
|
|||||||
I'm trying to achieve the same thing, but am getting an error when requesting this include file:
Code:
I've checked and double checked the spelling of my script and folders, but can't see what's wrong. Did you have to set any permissions or do anything else to get this to work? Thanks
__________________
-- building with v4.0.3 |
|||||||
#4
|
|||||||
|
|||||||
I'm not sure if it matters on this mod or not but have you tried unclicking the "If ticked, the categories list always shows root categories:" under General Settings...General Options?
__________________
~zilker uummm...perhaps you should tell me again. http://www.designertrends.com Version 4.0.6 Unix |
|||||||
#5
|
|||||||
|
|||||||
This is a very nice mode, works perfectly. Is there a way to make it so the subcategory is highlighted (or font is changed or whatever) when it is selected. I am looking at the code but drawing a blank.
Does anyone have any ideas on this? -Mike |
|||||||
#6
|
|||||||||
|
|||||||||
This mod shows disabled subcategories as well. That's not good.
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|