Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Need help with categories.php

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-26-2008, 09:10 PM
 
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

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?
__________________
Japanese Test--->X-cart 4.1.9
Reply With Quote
  #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
  #3  
Old 10-27-2008, 03:32 AM
 
mart mart is offline
 

Advanced Member
  
Join Date: Feb 2006
Posts: 54
 

Default Need help with categories.php

Same Question http://forum.x-cart.com/showthread.php?p=234270#post234270
__________________
Japanese Test--->X-cart 4.1.9
Reply With Quote
  #4  
Old 10-27-2008, 04:03 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default 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
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #5  
Old 10-27-2008, 04:31 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default 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).
Reply With Quote
  #6  
Old 10-27-2008, 05:25 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Need help with categories.php

Please don't double post mart. Any further posts on this topic will be deleted.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 10-27-2008, 07:16 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default 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:
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:13 PM.

   

 
X-Cart forums © 2001-2020