Virtuemart shows the bottom pagination even when there is only one page. This doesn’t make sense and a lot of people want to hide this. I have seen some tips where a core hack is suggested. As all of us know, for each core hack god kills a little cat – so if you like cats, don’t do it.
There is a very simple way to hide the pagination with a little change in the pagination theme:
Here we first store the pagination-string to a variable. After that, we check if there is a link contained in the string (check for ‘href’). If not, we return without displaying the pagination.
VM-Expert.com is part of the B01 Consulting Network. Since 2003 we build shops and websites with Joomla and Virtuemart. We are specialised in developing custom Joomla and Virtuemart Extensions.