Component : VirtueMart 1.1.2, 1.1.3
If your site have very few products in each categories in VirtueMart, you may want to remove the footer pagination altogether. Here's how...
if ( $num_rows > 1 ) {
$browsepage_footer = $tpl->fetch( 'browse/includes/browse_pagenav.tpl.php' );
$tpl->set( 'browsepage_footer', $browsepage_footer );
} else {
$tpl->set( 'browsepage_footer', '' );
}
If you want to show pagination only if the number of rows (or products) are more than say, 20 products... instead of commenting out, you can change the first line to the following...
if ( $num_rows > 20 ) {
SITE NOTE: To display the HTML tags on JoomlaFAQs, there is a space between the name of the tags and the enclosing "less than" (<) and "more than" (>) brackets. If you copy the code, make sure you delete the spaces to make it work!
If you have found this site to be useful and has helped you, kindly consider to donate. Your donation will encourage me and help to upkeep JoomlaFAQs.org! Cheers!
Add comment