VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: johny7816795 on June 07, 2012, 20:41:21 PM

Title: Default number of products displayed per page
Post by: johny7816795 on June 07, 2012, 20:41:21 PM
I have problem with Virtuemart 2.0.6 on Joomla 2.5.4. How can I change the default number of products displayed per page in category of products. The default value is 10 but I would like to change it to for example 100. I change in Global Configuration: Default List Limit and Default Feed Limit to 100. I set in virtuemart - Product Categories settings for selected category:
Category Form Limit List Start , Category Form Limit List Step , Category Form Limit List Max , Category Form Initial Display Records , to 100 but still shows only 10 products per page.


Could anyone help me please?
Thank you
Title: Re: Default number of products displayed per page
Post by: ren3784 on June 08, 2012, 17:49:39 PM
I think you go to VirtueMart » Configuration » Shopfront » Then change Max products per view in frontend. Mine is 20, maybe changing this will help?
Title: Re: Default number of products displayed per page
Post by: WillP on August 07, 2012, 05:29:14 AM
Hi,

I'm having this issue as well. Changing Max products per view in frontend is not working. Have you get any solution?

Thanks!
Title: Re: Default number of products displayed per page
Post by: WillP on October 06, 2012, 09:23:26 AM
Hi all,

I would like to share the solution for max products per view if you not yet get the answer.

Problems: Products per page is not changed although configuration in virtuemart for Max products per view in frontend
Solutions: You need also change the value for Category Form Initial Display Records in your product category (Products > Products Categories).

Thanks!
Title: Re: Default number of products displayed per page
Post by: carsten888 on November 26, 2014, 17:27:45 PM
QuoteSolutions: You need also change the value for Category Form Initial Display Records in your product category (Products > Products Categories).
Thank you. That seems to be the only way this works.

Is there any easy way to do this in all of my 27 categories?  :o
Title: Re: Default number of products displayed per page
Post by: carsten888 on November 27, 2014, 08:37:02 AM
I used this script to quickly set all categories to default 999 number of articles per page.

$db = JFactory::getDBO();


$query = $db->getQuery(true);
$query->update('#__virtuemart_categories');
$query->set('limit_list_initial='.$db->q('999'));
$db->setQuery((string)$query);
$db->query();