Category view : 3 instead of 4

GK User
Wed Mar 14, 2012 11:00 pm
I set all virtuemart configuration as in demo : 4, 4 and thumbails to 90x90. The thumbail size is correct, but in category view I get 3 products not 4 as is demo. What I am missing (there is quite a lot of space).

Template configuration is the same as in quick install.

How to make 4 products in category view in one line ?

Thanks.
User avatar
Gold Boarder

GK User
Wed Mar 14, 2012 11:06 pm
User avatar
Expert Boarder

GK User
Thu Mar 15, 2012 8:29 am
Thanks for your reply.

Keeping in mind your example I tried to modify /components/virtuemart/views/category/view.html.php

Code: Select all
$perRow = empty($category->products_per_row)? VmConfig::get('products_per_row',3):$category->products_per_row;


change to 4 instead of 3, but this doesn't work for me. Am I looking in wrong place ? I always get 3 products instead of 4 in category view.
User avatar
Gold Boarder

GK User
Thu Mar 15, 2012 9:05 am
are the settings in VM itself set to 4 per row?
User avatar
Expert Boarder

GK User
Thu Mar 15, 2012 9:38 am
Ah.. found where it was : category was created before changing configuration. So it didn't take effect on old category. I had to change in already created category to 4.

Thanks for your answers.
User avatar
Gold Boarder


cron