| ||||||||||
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 |
#41
|
|||||||
|
|||||||
Re: ALWAYS display first level subcats beneath root cats
Thanks for providing this! I found it extrememly helpful.
__________________
4.1.8 |
|||||||
#42
|
|||||||
|
|||||||
Re: ALWAYS display first level subcats beneath root cats
kerbsp,
where do I put that css file or how do I attach it
__________________
Christmas x-cart 4.1.6 |
|||||||
#43
|
|||||||
|
|||||||
Re: ALWAYS display first level subcats beneath root cats
Quote:
To keep things simple, I added it to my skin1.css file. xcart admin > edit templates > skin1.css or /xcart_root/skin1/skin1.css
__________________
Xcart 4.0.17 - XAOM - XRMA - Special Offer - Sales & Stats ______ www.futurevis.com |
|||||||
#44
|
|||||||
|
|||||||
Re: ALWAYS display first level subcats beneath root cats
A general note:
I have created a css template that does not use tables. For search engine optimization, the main content area is the first thing in the template - the sidebars appear after the main content area in the code... The problem is that when I apply this mod for 4.1.6, any language variables that appear before the categories include do not work... for example, my sort function when viewing a cateogory displayed as "Sort by: Sort direction ~~~~|lbl_product| ||~~~~ ~~~~|lbl_price| ||~~~~ ~~~~|lbl_default| ||~~~~" as did my location.tpl info... Anyone have any idea why this is? I would love to use this mod, but also do not want to sacrifice search engine rankings... I am guessing that it is related to the function added in categories.php... Please help! |
|||||||
#45
|
|||||||
|
|||||||
Re: ALWAYS display first level subcats beneath root cats
Found the issue.. In Andrew's code for categories.tpl, he has the open capture tag, but not the closing one... If you want to use the menu.tpl template on this menu, you need to add the closing capture tag and the include for the menu.tpl at the end of the file. If you want this as a standalone menu (not inside the menu.tpl file) then remove the capture line near the top.
|
|||||||
#46
|
|||||||
|
|||||||
Re: ALWAYS display first level subcats beneath root cats
Something else - the sub-categories do not display in order... to fix it, replace the code from post 32 with this code in your categories.php:
Code:
|
|||||||
#47
|
|||||||
|
|||||||
Re: ALWAYS display first level subcats beneath root cats
Im trying to display subcategories at all times... All the suggestions so far only seem to display subcategories after you have selected the parent category.
Anyone done this mod so that all subcategories show at all times?
__________________
X-Cart 4.7.3 |
|||||||
#48
|
|||||||
|
|||||||
Re: ALWAYS display first level subcats beneath root cats
Anyone got any suggestions?? I've spent 5 hours trying to get it to display all the categories and subcatgegories on every page but can't figure this stuff out... I can only get it to display subcategories after I click on the category. Any help would be much appreciated.
__________________
X-Cart 4.7.3 |
|||||||
#49
|
|||||||||
|
|||||||||
Re: ALWAYS display first level subcats beneath root cats
Sounds like you have missed a bit out where you add code to include/categories.php. Have you done that, or just edited templates?
__________________
Paul Dodman e-business & m-commerce consultant w: www.luminointernet.com e: xcart@luminointernet.com Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart. |
|||||||||
#50
|
|||||||
|
|||||||
Re: ALWAYS display first level subcats beneath root cats
Been trying to install this mod again and I am clueless as to why it only displays main and subcategories after the main category is clicked. I edited my /include/categories.php to include this code below, at about line 329 right under the code it mentioned in post #32.
//Subcategories in menu function func_getallsubcat() { $raj =func_get_categories_list("", true, "all"); $raj1=$raj['all_categories']; $ll=array(); foreach ($raj1 as $k=>$val) { if($val['parentid']!="0") { $ll[$val['parentid']][]=$val; } } return $ll; } $smarty->assign("allsubcategories", func_getallsubcat()); //Subcategorie in menu - end Then I have tried all of the different categories.tpl, copy and pasting them into my /skin1/customer/categories.tpl file... I have been able to get them to show subcategories only after you click the parent category. I have been trying this for over a week now and I am really stumped and out of ideas... I am also running cdseo and the new skin available in X-cart 4.1.7 which I think was called light something.... I dont think these 2 things would affect the subcategories not displaying on the main page, but maybe I am wrong... Anyone have any ideas what could possibly be wrong and is everyone running this in 4.1.7?
__________________
X-Cart 4.7.3 |
|||||||
|
|||
X-Cart forums © 2001-2020
|