X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Need help with categories.php (https://forum.x-cart.com/showthread.php?t=43257)

mart 10-26-2008 09:10 PM

Need help with categories.php
 
i have about 3000 categories in my store,so the xcart is very very very slow

so i want to do like below
1.only show 2 level in the left menu
2.show subcategories after 2 level,when user click the categories.


I do like below
1.add categorieslevel in the xcart_categories table,then set categorieslevel to level1,level2,level3..
2.change categories.php
Code:

$search_condition[] = "$sql_tbl[categories].categorylevel <= 2";

its work very fast now,Xcart only show 2 level in the lefr menu
but i cannot see the subcategories under 2 level,So anyboday can help me for this?

mart 10-27-2008 03:30 AM

Need help with categories.php
 
4 Attachment(s)
i have about 3000 categories in my store,so the xcart is very very very slow
SEE OLD.JPG

so i want to do like below
1.only show 2 level in the left menu
2.show subcategories after 2 level,when user click the categories.
SEE NEW.JPG,THIS IS I WANT


I do like below
1.add categorieslevel in the xcart_categories table,then set categorieslevel to level1,level2,level3..
2.change categories.php

Code:
$search_condition[] = "$sql_tbl[categories].categorylevel <= 2";
its work very fast now,Xcart only show 2 level in the lefr menu
but i cannot see the subcategories under 2 level,So anyboday can help me for this?

mart 10-27-2008 03:32 AM

Need help with categories.php
 
Same Question http://forum.x-cart.com/showthread.php?p=234270#post234270

JWait 10-27-2008 04:03 AM

Re: Need help with categories.php
 
http://www.xcartmods.co.uk/x-cart-3-level-advanced-dynamic-category-menu-x-cart-mods-pr-1.html

Yurij 10-27-2008 04:31 AM

Re: Need help with categories.php
 
Quote:

Originally Posted by mart
i have about 3000 categories in my store,so the xcart is very very very slow
SEE OLD.JPG

so i want to do like below
1.only show 2 level in the left menu
2.show subcategories after 2 level,when user click the categories.
SEE NEW.JPG,THIS IS I WANT


I do like below
1.add categorieslevel in the xcart_categories table,then set categorieslevel to level1,level2,level3..
2.change categories.php

Code:
$search_condition[] = "$sql_tbl[categories].categorylevel <= 2";
its work very fast now,Xcart only show 2 level in the lefr menu
but i cannot see the subcategories under 2 level,So anyboday can help me for this?



You want to show a 2 level in the left menu.
When you select a different category, start to show for this category all its sub-categories in the left menu (after page reload)?

PS. Fancy Category mod active?
PS2. More needs code file for left block menu (tpl file).

balinor 10-27-2008 05:25 AM

Re: Need help with categories.php
 
Please don't double post mart. Any further posts on this topic will be deleted.

Jon 10-27-2008 07:16 AM

Re: Need help with categories.php
 
Try not changing your categories.php at all. Then in your x-cart admin -> general settings, uncheck: If ticked, the categories list always shows root categories:


All times are GMT -8. The time now is 01:34 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.