How to show all products in admin?

marikas

No avatar

2009-02-09 11:31

Hi everybody,

Since I have so many products I want to see all the pages in my admin. At the moment I have 21 pages in products but I see the pages like this
Page 1 2 3 4 5 6 7 8 9 10 ... 21 Next>>
So how to show all pages? I guess you have to change something in core/products-admin.php?

Cheers

» Quick.Cart v3.x

:P

marikas

No avatar

2009-02-09 11:33

Also if there is a way to return to the page that was selected and not to the first page after I push Save and return to the list.

:P

beholder

Avatar: beholder

2009-02-10 03:19

Hi, perhaps it's this code in core/products-admin.php? Please analyze it if you can and try to change for example $iStart and $iEnd to $iStart=1 and $iEnd=$iCount, perhaps it will be that simple:

$iProducts = ceil( $iCount / $iList );
$iPageNumber = isset( $_GET['iPage'] ) ? $_GET['iPage'] : 1;
if( !isset( $iPageNumber ) || !is_numeric( $iPageNumber ) || $iPageNumber < 1 )
$iPageNumber = 1;
if( $iPageNumber > $iProducts )
$iPageNumber = $iProducts;

$iEnd = $iPageNumber * $iList;
$iStart = $iEnd - $iList;

if( $iEnd > $iCount )
$iEnd = $iCount;

Back to top
about us | contact