Make pagination zone disappear if there's less products shown

  • Posts: 634
  • Thank you received: 16
  • Hikashop Business
4 years 10 months 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: 81361
  • Thank you received: 13036
  • MODERATOR
4 years 10 months 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) {

The following user(s) said Thank You: PeterChain

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

Time to create page: 0.068 seconds
Powered by Kunena Forum