Categories Question...

Is it possible to display categories in 3 columns rather than 2?



I have searched the forums and tried changing the display to grid etc but nothing changes :frowning:



My store can be found at [url]http://www.dogsndubs.com/store/index.php[/url]



Any help would be greatly appreciated :slight_smile:



Cheers

Marc

[quote name=‘dogsndubs’]Is it possible to display categories in 3 rows rather than 2?



I have searched the forums and tried changing the display to grid etc but nothing changes :frowning:



My store can be found at [URL]http://www.dogsndubs.com/store/index.php[/URL]



Any help would be greatly appreciated :slight_smile:



Cheers

Marc[/quote]

I think you mean 3 columns?

[quote name=‘joe’]I think you mean 3 columns?[/QUOTE]



Yep, I had a brain dead moment :roll:



Now edited :slight_smile:

In Settings->Appearance, set “Number of columns in the product list” to 3.



Bob

[quote name=‘jobosales’]In Settings->Appearance, set “Number of columns in the product list” to 3.



Bob[/QUOTE]



Thanks Bob



I’ve now done that but it is still showing only two columns??? :confused:

[quote name=‘dogsndubs’]Thanks Bob



I’ve now done that but it is still showing only two columns??? :confused:[/QUOTE]

That’s true, your product list columns now are 3.



You can not define number of columns for subcategories through admin.

To change the subcategories display you’ll need to edit the views tpl template file.



I recommend you do this thru hooks, if you know how. If you do not, you can see my other post on hooks. [URL=“http://forum.cs-cart.com/showthread.php?t=14586”]http://forum.cs-cart.com/showthread.php?t=14586[/URL]



Edit view.tpl, found under: /skins/basic/customer/views/categories

Look for the line near the top that reads:

{math equation="ceil(n/c)" assign="rows" n=$subcategories|count c=$columns|default:"2"}



The $columns|default controls how many columns, so change that 2 to how many columns you want to use. Obviously the number of columns is limited by the template you are using and the width you have available.