View Single Post
  #2  
Old 10-27-2008, 03:30 AM
 
mart mart is offline
 

Advanced Member
  
Join Date: Feb 2006
Posts: 54
 

Default Need help with categories.php

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?
Attached Thumbnails
Click image for larger version

Name:	old.jpg
Views:	184
Size:	38.0 KB
ID:	1197  Click image for larger version

Name:	new.jpg
Views:	184
Size:	29.5 KB
ID:	1198  
Attached Files
File Type: php categories_new.php (16.1 KB, 95 views)
File Type: csv categories.csv (599 Bytes, 222 views)
__________________
Japanese Test--->X-cart 4.1.9
Reply With Quote