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

#   Disable pagination on selected categories

##

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile") Topic Author
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1189
- Thank you received: 13
-
-

13 years 11 months ago [\#76980](#76980) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  *[Disable pagination on selected categories](/forum/2-general-talk-about-hikashop/75873-disable-pagination-on-selected-categories#76980 "Hi! Is it possible to disable the pagination in a selected category? Not all via css. I need to have in my mainpage a product listing category with no pagination and all the other categories,should display pagination.")* was created by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")*

Hi!
Is it possible to disable the pagination in a selected category? Not all via css.
I need to have in my mainpage a product listing category with no pagination and all the other categories,should display pagination.

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 11 months ago -  13 years 11 months ago [\#77114](#77114) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Disable pagination on selected categories](/forum/2-general-talk-about-hikashop/75873-disable-pagination-on-selected-categories#77114 "Hi! Is it possible to disable the pagination in a selected category? Not all via css. I need to have in my mainpage a product listing category with no pagination and all the other categories,should display pagination.")*

Hi,

You can edit the view "product / listing_div" (if it the type of listing you use).
At the end of the view, there is a block which would display the pagination. You can add a condition in order to not display it for a specific category.
You would find this Code:

&lt;?php 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){ $this-&gt;pagination-&gt;form = '_bottom'; ?&gt;

And you can replace it by Code:

&lt;?php $currentCategory = (int)trim($this-&gt;category_selected, '_'); if($currentCategory != 10 &amp;&amp; in_array($pagination,array('bottom','both')) &amp;&amp; $this-&gt;params-&gt;get('show_limit') &amp;&amp; $this-&gt;pageInfo-&gt;elements-&gt;total){ $this-&gt;pagination-&gt;form = '_bottom'; ?&gt;

Just change the "$currentCategory != 10" by the ID of the target category.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Last edit: 13 years 11 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

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

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile") Topic Author
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1189
- Thank you received: 13
-
-

13 years 11 months ago [\#77405](#77405) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Disable pagination on selected categories](/forum/2-general-talk-about-hikashop/75873-disable-pagination-on-selected-categories#77405 "Hi! Is it possible to disable the pagination in a selected category? Not all via css. I need to have in my mainpage a product listing category with no pagination and all the other categories,should display pagination.")*

a comma seperated ids is an option to add more categories to be excluded?

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 11 months ago [\#77411](#77411) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Disable pagination on selected categories](/forum/2-general-talk-about-hikashop/75873-disable-pagination-on-selected-categories#77411 "Hi! Is it possible to disable the pagination in a selected category? Not all via css. I need to have in my mainpage a product listing category with no pagination and all the other categories,should display pagination.")*

Hi,

To add more categories to be excluded, you have to use "&amp;&amp; $currentCategory != 11" (etc) in the if condition.

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

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile") Topic Author
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1189
- Thank you received: 13
-
-

13 years 11 months ago [\#77413](#77413) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Disable pagination on selected categories](/forum/2-general-talk-about-hikashop/75873-disable-pagination-on-selected-categories#77413 "Hi! Is it possible to disable the pagination in a selected category? Not all via css. I need to have in my mainpage a product listing category with no pagination and all the other categories,should display pagination.")*

I tried with 1 category and it doesn t work. Which id should I use. I tried both. Hikashop cat id and joomla menu id

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 11 months ago -  13 years 11 months ago [\#77418](#77418) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Disable pagination on selected categories](/forum/2-general-talk-about-hikashop/75873-disable-pagination-on-selected-categories#77418 "Hi! Is it possible to disable the pagination in a selected category? Not all via css. I need to have in my mainpage a product listing category with no pagination and all the other categories,should display pagination.")*

You can find the hikashop categories in HikaShop &gt; Products &gt; Categories, then you will find the id.
The id should start at "11".

To add more categories, you can too use: Code:

$hideCategory = array('10','11'); if(!in_array($currentCategory,$hideCategory) &amp;&amp; in_array($pagination,array('bottom','both')) ...

Last edit: 13 years 11 months ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

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

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile") Topic Author
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1189
- Thank you received: 13
-
-

13 years 11 months ago -  13 years 11 months ago [\#77420](#77420) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Disable pagination on selected categories](/forum/2-general-talk-about-hikashop/75873-disable-pagination-on-selected-categories#77420 "Hi! Is it possible to disable the pagination in a selected category? Not all via css. I need to have in my mainpage a product listing category with no pagination and all the other categories,should display pagination.")*

I understand but I tried
Code:

&lt;?php $currentCategory = (int)trim($this-&gt;category_selected, '_'); if($currentCategory != 26 &amp;&amp; in_array($pagination,array('bottom','both')) &amp;&amp; $this-&gt;params-&gt;get('show_limit') &amp;&amp; $this-&gt;pageInfo-&gt;elements-&gt;total){ $this-&gt;pagination-&gt;form = '_bottom'; ?&gt;

and pagination is still there

Last edit: 13 years 11 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: fix code

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#77507](#77507) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Disable pagination on selected categories](/forum/2-general-talk-about-hikashop/75873-disable-pagination-on-selected-categories#77507 "Hi! Is it possible to disable the pagination in a selected category? Not all via css. I need to have in my mainpage a product listing category with no pagination and all the other categories,should display pagination.")*

Hi,

Can you give us a link to your product listing ?

Thanks,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile") Topic Author
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1189
- Thank you received: 13
-
-

13 years 11 months ago [\#77511](#77511) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Disable pagination on selected categories](/forum/2-general-talk-about-hikashop/75873-disable-pagination-on-selected-categories#77511 "Hi! Is it possible to disable the pagination in a selected category? Not all via css. I need to have in my mainpage a product listing category with no pagination and all the other categories,should display pagination.")*

pmd thanks!

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#77512](#77512) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Disable pagination on selected categories](/forum/2-general-talk-about-hikashop/75873-disable-pagination-on-selected-categories#77512 "Hi! Is it possible to disable the pagination in a selected category? Not all via css. I need to have in my mainpage a product listing category with no pagination and all the other categories,should display pagination.")*

Hi,

I've just see that there was a double "$this-&gt;" in my code (width "$this-&gt;$this-&gt;category_selected").
I have modified my code and yours, please update it in your website.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile") Topic Author
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1189
- Thank you received: 13
-
-

13 years 11 months ago [\#77521](#77521) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Disable pagination on selected categories](/forum/2-general-talk-about-hikashop/75873-disable-pagination-on-selected-categories#77521 "Hi! Is it possible to disable the pagination in a selected category? Not all via css. I need to have in my mainpage a product listing category with no pagination and all the other categories,should display pagination.")*

Can you please post the final code, for than one categories.. thanks!

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#77599](#77599) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Disable pagination on selected categories](/forum/2-general-talk-about-hikashop/75873-disable-pagination-on-selected-categories#77599 "Hi! Is it possible to disable the pagination in a selected category? Not all via css. I need to have in my mainpage a product listing category with no pagination and all the other categories,should display pagination.")*

Hi,

As I said, I modified the code in your previous post. Code:

&lt;?php $currentCategory = (int)trim($this-&gt;category_selected, '_'); if($currentCategory != 26 &amp;&amp; in_array($pagination,array('bottom','both')) &amp;&amp; $this-&gt;params-&gt;get('show_limit') &amp;&amp; $this-&gt;pageInfo-&gt;elements-&gt;total){ $this-&gt;pagination-&gt;form = '_bottom'; ?&gt;

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc1ODczLWRpc2FibGUtcGFnaW5hdGlvbi1vbi1zZWxlY3RlZC1jYXRlZ29yaWVzP3RtcGw9bWFya2Rvd24=) 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.373 seconds

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

[](#top)
