News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Default number of products per page

Started by johny7816795, June 03, 2012, 21:42:08 PM

Previous topic - Next topic

johny7816795

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

holypoly

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...

John2400

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