Sure, it's a relatively small change to the ppCountDropdown function of /includes/functions/extra_functions/products_pagination_functions.php
Code:
function ppCountDropdown ($numItems, $whichCount, $formSuffix) {
global $getoption_set, $get_option_variable, $cPath, $show_top_submit_button, $show_bottom_submit_button; // Used on product-listing/index page
$dropdown = '';
$countArray = explode(',', PRODUCTS_PAGINATION_COUNT_VALUES);
if (count($countArray) > 0) {
$pageArray = array();
for ($i=0, $n=sizeof($countArray), $done_all = false; $i<$n; $i++) {
if ($countArray[$i] == '*') {
if (!$done_all) {
$pageArray[] = array( 'id' => 'all', 'text' => PP_TEXT_ALL );
$done_all = true;
}
} elseif ($numItems > $countArray[$i]) {
$pageArray[] = array( 'id' => $countArray[$i], 'text' => $countArray[$i]);
} elseif (!$done_all) {
$pageArray[] = array ('id' => 'all', 'text' => PP_TEXT_ALL);
$done_all = true;
}
}
Bookmarks