Make pagination zone disappear if there's less products shown

  • Posts: 606
  • Thank you received: 16
  • Hikamarket Multivendor Hikashop Business
6 days 17 hours ago #306606

-- HikaShop version -- : 4.1.0
-- Joomla version -- : 3.9.5
-- PHP version -- : 7.1.0

Hi,

How can I make the pagination zone (pagination bar, limit products dropdown...) disappear if we have less products (or equal) to be shown than the limit selected in the limit dropdown?



Thanks.

--
Victor

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 65661
  • Thank you received: 9585
  • MODERATOR
6 days 5 hours ago #306622

Hi,

In product/listing_div.php you can change the code:

if(in_array($pagination, array('bottom', 'both')) && $this->params->get('show_limit') && $this->pageInfo->elements->total && !$infinite_scroll) {
to:
if(in_array($pagination, array('bottom', 'both')) && $this->params->get('show_limit') && $this->pageInfo->elements->total > count($this->rows) && !$infinite_scroll) {

Please Log in or Create an account to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum