JoomlaFAQs.org

JoomlaFAQsBanner
How To Groom Your Dog At Home

Favourites Create PDF Email Print

How To Remove Footer Pagination On VirtueMart Category Browse Page

Author:
technojoom
Hits:
1690
Rating:
 
Vote for this:
Good - Bad
favoured:
0 Favour

Answer

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...

  1. Go to yoursite/administrator/components/com_virtuemart/html
  2. Open up the file > shop.browse.php
  3. Go to line 476 (almost the end of the file) and look for the following snippet
  4. 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', '' );
    }
  5. Comment out all the lines with '//'.
  6. Save the file

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!





Category

Tags for this item

Add comment


Security code
Refresh

JoomlaFAQs Categories