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

Mod for subcategories in columns with descriptions and icons

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #41  
Old 11-23-2004, 01:03 PM
 
brett brett is offline
 

Member
  
Join Date: Jun 2004
Posts: 10
 

Default

thanks works great in 4.07 too
Reply With Quote
  #42  
Old 12-08-2004, 04:43 AM
 
rapsearch rapsearch is offline
 

Advanced Member
  
Join Date: Nov 2004
Posts: 47
 

Default

This is working great

I do got a request though. Is it possible to have a category display more columns?

I want all categories at 2 columns what this code does great but one needs to be at 4 or it will get way to long.


is this possible?
__________________
Version: 4.1.10
Server: Apache/mysql
Location: http://www.rapsearch.com/store
Reply With Quote
  #43  
Old 12-08-2004, 05:48 AM
 
nfc5382 nfc5382 is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 477
 

Default

any differences for 3.5.x branch?
__________________
-----------------------
x-cart v4.7.6 [LIVE]
x-cart v4.0.18 [retired 2004-2016]
x-cart v3.5.13 [retired]
x-cart v3.4.14 [retired]
Reply With Quote
  #44  
Old 12-08-2004, 05:54 AM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

You should be able to use the 3.4 code and just watch the Smarty tags for database items to make sure the verbage isn't different. It shouldn't be because 3.5 is really just an extension of 3.3, 3.4
Reply With Quote
  #45  
Old 12-09-2004, 01:31 PM
 
rapsearch rapsearch is offline
 

Advanced Member
  
Join Date: Nov 2004
Posts: 47
 

Default

I use the code from "grimscot" given above.

Is it possible to shorten the amount of subcategories displayed? I have for example over 50 subcategories in one section. I get a huge list now and people have to scroll down a lot.

Can i get more columns so people don't have to scroll down so much? 3 or 4 for example?
__________________
Version: 4.1.10
Server: Apache/mysql
Location: http://www.rapsearch.com/store
Reply With Quote
  #46  
Old 12-09-2004, 01:57 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Change this I believe

Code:
{if %cat_num.index% is div by 2}
Reply With Quote
  #47  
Old 12-13-2004, 02:27 AM
  Dmitri's Avatar 
Dmitri Dmitri is offline
 

Senior Member
  
Join Date: Jul 2003
Location: Toronto
Posts: 174
 

Default category description

now that wouldn't display description for each subcategory, would it?
It didn't in my 4.0.8...

Alhtough I clearly see: { $subcategories[cat_num].description|escape }
but it returns nothing...

any ideas?

Thanks!
__________________
CartTemplates | ASF Design Inc
~~~
CartTemplates.com | XCart Design - Custom design or Choose from thousands of templates that can be integrated with X-Cart.
tel: +1 (416) 410-9995
Reply With Quote
  #48  
Old 12-14-2004, 10:25 PM
 
GM GM is offline
 

eXpert
  
Join Date: Mar 2004
Location: Canada
Posts: 293
 

Default

MOST EXCELLENT!
Reply With Quote
  #49  
Old 12-15-2004, 03:16 AM
 
rapsearch rapsearch is offline
 

Advanced Member
  
Join Date: Nov 2004
Posts: 47
 

Default

Changing that works... but how can i set x amount od columns for a specific subcategory?? I want one section to be 3 columns and my others must be 2.
__________________
Version: 4.1.10
Server: Apache/mysql
Location: http://www.rapsearch.com/store
Reply With Quote
  #50  
Old 12-15-2004, 01:10 PM
 
Chris B Chris B is offline
 

eXpert
  
Join Date: Oct 2002
Posts: 226
 

Default display only 10 per page

Since we have so many sub categories, is there a method to display only 10 on a page and then have a "next" and "previous" button?

Thank you,
Chris
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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:28 AM.

   

 
X-Cart forums © 2001-2020