Hi,
Not sure if this has been posted somewhere else but I also needed something like this and I came up with the following:
In includes->modules->TEMPLATE->product_listing.php paste
PHP Code:
if(!empty($_REQUEST['ShowAll'])){$max_results = $_REQUEST['ShowAll'];}
Directly under
PHP Code:
$max_results = (PRODUCT_LISTING_LAYOUT_STYLE=='columns' && PRODUCT_LISTING_COLUMNS_PER_ROW>0) ? (PRODUCT_LISTING_COLUMNS_PER_ROW * (int)(MAX_DISPLAY_PRODUCTS_LISTING/PRODUCT_LISTING_COLUMNS_PER_ROW)) : MAX_DISPLAY_PRODUCTS_LISTING;
Then in includes->templates->TEMPLATE->tpl_modules_product_listing.php paste something like this
PHP Code:
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~
// REDPAINT MODIFICATION TO ACTIVATE SHOW ALL FUNCTIONALITY
if(!empty($_REQUEST['ShowAll'])){
$ShowAll = $_REQUEST['ShowAll'];
$QS = str_replace('ShowAll='.$ShowAll,'',$_SERVER['QUERY_STRING']);
print '<a href="'.$_SERVER['SCRIPT_NAME'].'?'.$QS.'">Show '.MAX_DISPLAY_PRODUCTS_LISTING.' Per Page</a>';
}else{
print '<a href="'.$_SERVER['SCRIPT_NAME'].'?'.$_SERVER['QUERY_STRING'].'&ShowAll='.$listing_split->number_of_rows.'">Show all</a> | ';
}
// END MODIFICATION
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~
Put the code directly after line 28 which should read
PHP Code:
<div id="productsListingListingTopLinks" class="navSplitPagesLinks forward"><?php
It may not be the most eloquent solution but I hope this helps someone else.