Skip to main content

Make pagination zone disappear if there's less products shown

7 years 5 months ago #306606 by PeterChain
-- 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

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

7 years 5 months ago #306622 by nicolas
Hi,

In product/listing_div.php you can change the code:
Code:
if(in_array($pagination, array('bottom', 'both')) && $this->params->get('show_limit') && $this->pageInfo->elements->total && !$infinite_scroll) {
to:
Code:
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.044 seconds
Powered by Kunena Forum