[Skip to main content](#vessel-content)

#   Make pagination zone disappear if there's less products shown

##

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

7 years 5 months ago [\#306606](#306606) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  *[Make pagination zone disappear if there's less products shown](/forum/26-product-category-display/897469-make-pagination-zone-disappear-if-theres-less-products-shown#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")* was created by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")*

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

[ ![Capturadepantalla2019-05-16ales11.11.29.png](/forum/attachment/46814) ](/forum/attachment/46814 "...es11.11.29.png")

Thanks.

--
Victor

- [ ![Capturadepantalla2019-05-16ales11.11.29.png](/forum/attachment/46814) ](/forum/attachment/46814 "...es11.11.29.png") [ ](/forum/attachment/46814?download=1 "...es11.11.29.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTc0NjktbWFrZS1wYWdpbmF0aW9uLXpvbmUtZGlzYXBwZWFyLWlmLXRoZXJlLXMtbGVzcy1wcm9kdWN0cy1zaG93bj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86540
- Thank you received: 14300
-
-

7 years 5 months ago [\#306622](#306622) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Make pagination zone disappear if there's less products shown](/forum/26-product-category-display/897469-make-pagination-zone-disappear-if-theres-less-products-shown#306622 "-- 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")*

Hi,

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

if(in_array($pagination, array('bottom', 'both')) &amp;&amp; $this-&gt;params-&gt;get('show_limit') &amp;&amp; $this-&gt;pageInfo-&gt;elements-&gt;total &amp;&amp; !$infinite_scroll) {

to: Code:

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

The following user(s) said Thank You: [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTc0NjktbWFrZS1wYWdpbmF0aW9uLXpvbmUtZGlzYXBwZWFyLWlmLXRoZXJlLXMtbGVzcy1wcm9kdWN0cy1zaG93bj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.053 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
