| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
ALWAYS display first level subcats beneath root cats | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||
|
|||||||
Many thanks ExoZed and bluski!
I love this mod!
__________________
x-cart 4.0.14 Pro |
|||||||
#12
|
|||||||
|
|||||||
I want the current subcategory in menu to have different style, for example "Bold".
How to do this? Thanks.
__________________
x-cart 4.0.14 Pro |
|||||||
#13
|
|||||||
|
|||||||
Quote:
Not sure if you still need help with this, but if others are searching I would guess it would be done in this section: Code:
Create a class in the stylesheet to control the look you want and assign the class to the anchor tag, like this (using whatever you have named the class in the stylesheet in place of the "SubCatStyle" I used here): Code:
Hope that helps!
__________________
X-Cart Gold 4.0.15 on Linux machine Modules: Features Comparison Product Configurator Fancy Categories (turned off) |
|||||||
#14
|
|||||||
|
|||||||
How can you display sub-subcategories with this mod?
i.e. -Cat 1 --Sub Cat 1 ---Sub-Sub Cat 1 ---Sub-Sub Cat 2 ---Sub-Sub Cat 3 --Sub Cat 2 --Sub Cat 3 -Cat 2 -Cat 3
__________________
X-Cart Platinum 4.6.5 |
|||||||
#15
|
|||||||||
|
|||||||||
I'm not sure what does the last part of the code do?
Quote:
__________________
Thanks. X-Cart Gold 4.0.14 on Linux |
|||||||||
#16
|
|||||||||
|
|||||||||
Nevermind just figured that one out...
__________________
Thanks. X-Cart Gold 4.0.14 on Linux |
|||||||||
#17
|
|||||||
|
|||||||
Sub-sub categories
To display further sub-subcategories you could just add a section loop within the existing 'subcat' section loop. This seems a bit convoluted but haven't had time to figure it out properly - there would be a much nicer way to do it in include/categories.php if you were to sort an array properly. But for anyone not bothered, smarty seems to be fast enough to handle doing all these loops...
Code:
It's the section loop called 'subsubcat' that adds these categories, with a > infront of the name. This is the only thing I added to do this.
__________________
-------------------------------------------- 4.0.14-gold_upgrade |
|||||||
#18
|
|||||||||
|
|||||||||
Hi All,
Is there a working url to actually see the demo of this mod? I would like to see it if no one minds that is. Thanks in advance!
__________________
Mil Mascaras Live Xcart Site #1-V- 4.1.8 Live Xcart site # 2-V 4.4.3 CDSEO Mod - Firetank MM30 - 7DANA- The bestTemplates! Linux - EWD Host Servers awesome service! AlteredCart One Page Checkout |
|||||||||
#19
|
|||||||
|
|||||||
This is a really great mod, thanks for posting it!
I just have a question - How would this code work with the new 4.1 version of x-cart? for example - what would be the 4.1 equivilent be of: Code:
TIA -NIC
__________________
hello there |
|||||||
#20
|
|||||||||
|
|||||||||
Does this mod work in version 4.1.0 ?
Regards Shafiq :sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!) Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x Multiple Instances of X-Cart MySQL 5.6.37 CentOS 7.4 Chamber Internet - Lancashire, United Kingdom http://www.chamberelancs.co.uk |
|||||||||
|
|||
X-Cart forums © 2001-2020
|