How to set products per page limit in VirtueMart

Ofcourse you may change that setting in Joomla Configuration » List Length. But also it can be done in another custom way.
To change products per page limit in VirtueMart you should open for edit file: components/com_virtuemart/virtuemart.php
Edit:

$limit = intval( $mainframe->getUserStateFromRequest( "viewlistlimit", 'limit', $mosConfig_list_limit ) );

And change $mosConfig_list_limit to any number of products per page.

2 Responses to “How to set products per page limit in VirtueMart”

  1. A says:

    this dosent really work; for example if I setup my limit to be 3 products per page and I have 5 products in total, that will mean that only first three prodicts will be displayed and another two will be inaccessible until there will be an even number of 6 products.

  2. DavidA says:

    This will work if your number of products is greater than 100 and you don’t have pagination turned on.

Leave a Reply