VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: johny7816795 on June 03, 2012, 21:42:08 PM

Title: Default number of products per page
Post by: johny7816795 on June 03, 2012, 21:42:08 PM
Hi,

I have a question about how to change default number of products per page. It is set tu number 10 but I would like to change it to some to some higher number.

Thank you for your help
Title: Re: Default number of products per page
Post by: holypoly on August 02, 2012, 21:51:18 PM
I had the same problem.  I dived into the code and did see that the variable $nbrReturnProducts was undefined in administrator/components/com_virtuemart/models/product.php file @ line 419... so I kinda hot-fixed it by adding a inline if sentence like this one.

$nbrReturnProducts = ($nbrReturnProducts == null || $nbrReturnProducts == "" ? 28 : $nbrReturnProducts);

before it runs the exeSortSearchListQuery() class function and it worked fine after that....

It seams to be somekind of a bug that this is not avalible as a configuration option in the system.... I looked through everything and found nothing that came close to setting the value for $nbrReturnProducts.

Hope that this helps...
Title: Re: Default number of products per page
Post by: John2400 on August 02, 2012, 22:57:02 PM
The default number is set in categories configuration.

Also make sure that the SEO settings in Joomla are the same in VM.

VM >>configuration

Joomla>>site>>site

Both on or both off

then set the number in configuration