View Full Version : Set Number of Products Per Page
May 25th, 2009, 05:55 PM
I would like to set the default number "Per Page" for showcat view.
I assume this is a database setting? But not sure where.
The current default seems to be 12.
May 25th, 2009, 08:42 PM
The perpage default is always the number of thumbnail rows set in admin x3 and that it set by code in the showcat.php file.
May 25th, 2009, 08:59 PM
I can't find the figure 12 in showcat.php
$perpage1x = $Globals['thumbcols'];
$perpage3x = ($perpage1x * 3);
$perpage4x = ($perpage1x * 4);
$perpage5x = ($perpage1x * 5);
$perpage6x = ($perpage1x * 7);
is it something to do with that above?
Where is the value I need to change?
May 25th, 2009, 09:06 PM
Well all depends what you want your perpage to be.
Say you want it to be 24 you could say find the code noted here and add the line in bold
$perpage = 24;
if ( isset($perpage) && is_numeric($perpage) )
if ( $perpage != $rpperpage )
@setcookie( "rpperpage", $perpage, time()+2592000 );
$page = 1;
May 25th, 2009, 09:19 PM
May 26th, 2009, 09:34 AM
No problem glad to assist
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.