VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: d0ublezer0 on February 25, 2012, 13:03:05 PM

Title: Products per row BUG
Post by: d0ublezer0 on February 25, 2012, 13:03:05 PM
Option "products per row" not affected on real output: No matter what number I enter, the number of products in a row is equal to three.
Settings are saved without any problems in the database.
However, in the category template you can check the output:
// Calculating Products Per Row
$BrowseProducts_per_row = $this->perRow;
echo $BrowseProducts_per_row;
           
The result in my case is 3

VM 2.0.2
Title: Re: Products per row BUG
Post by: PRO on February 25, 2012, 14:41:58 PM
d0ublezer0,

look IN EACH category, it also has a setting.

You can manually change each one, or do an sql update


updated jos_virtuemart_categories set products_per_row=NUMBER

Title: Re: Products per row BUG
Post by: d0ublezer0 on February 25, 2012, 15:01:48 PM
In each of my categories this setting equals to 0 (zero).
As I think, where is set to 0, that should not override main settings in shop.

However, change of this setup in category settings solves my problem. Thank you.
Title: Re: Products per row BUG
Post by: Milbo on February 25, 2012, 15:15:00 PM
This is right d0ublezer0, maybe a typo, thx. Please give exactly hte name of the template you use, is it in categories or category? In which file it is always 3?