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

#   Change pagination on product listing

##

- **[Thalia](/forum/user/965-thalia "View Thalia's Profile")**
- [![Thalia's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar965.jpg)](/forum/user/965-thalia "View Thalia's Profile") Topic Author
- [ Offline](/forum/user/965-thalia)

Less More

- Posts: 5
- Thank you received: 0
-
-
-

14 years 3 weeks ago -  14 years 3 weeks ago [\#73320](#73320) by [Thalia](/forum/user/965-thalia "View Thalia's Profile")  *[Change pagination on product listing](/forum/4-how-to/73320-change-pagination-on-product-listing#73320 "Hi,  how can I change the pagination on my product listing?  I get this list at the moment: 30,5,10,15,20,25,30,50,100,all ... and I think it's too much. :dry:  I would prefer something like this: 25,50,100,all  I am looking at product / listing&#95;div (Display -&gt; Views Menu) :unsure: . Is this the file I should change, and how?  Thanks in advance, :)  Thalia")* was created by *[Thalia](/forum/user/965-thalia "View Thalia's Profile")*

Hi,

how can I change the pagination on my product listing?

I get this list at the moment: 30,5,10,15,20,25,30,50,100,all ... and I think it's too much. :dry:

I would prefer something like this: 25,50,100,all

I am looking at product / listing_div (Display -&gt; Views Menu) ![:unsure:](/media/kunena/emoticons/18.png ":unsure:") . Is this the file I should change, and how?

Thanks in advance, ![:)](/media/kunena/emoticons/3.png ":)")

Thalia

Last edit: 14 years 3 weeks ago by [Thalia](/forum/user/965-thalia "View Thalia's Profile").

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

14 years 3 weeks ago -  14 years 3 weeks ago [\#73413](#73413) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Change pagination on product listing](/forum/4-how-to/73320-change-pagination-on-product-listing#73413 "Hi,  how can I change the pagination on my product listing?  I get this list at the moment: 30,5,10,15,20,25,30,50,100,all ... and I think it's too much. :dry:  I would prefer something like this: 25,50,100,all  I am looking at product / listing&#95;div (Display -&gt; Views Menu) :unsure: . Is this the file I should change, and how?  Thanks in advance, :)  Thalia")*

Hi,

You can edit the file: "administrator/components/com_hikashop/helpers/pagination.php" and for the function "getLimitBox()" change the value of the variable $minimum to "25" like that:
function getLimitBox($minimum=25){...

Last edit: 14 years 3 weeks ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

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

- **[Thalia](/forum/user/965-thalia "View Thalia's Profile")**
- [![Thalia's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar965.jpg)](/forum/user/965-thalia "View Thalia's Profile") Topic Author
- [ Offline](/forum/user/965-thalia)

Less More

- Posts: 5
- Thank you received: 0
-
-
-

14 years 3 weeks ago [\#73577](#73577) by [Thalia](/forum/user/965-thalia "View Thalia's Profile")  Replied by *[Thalia](/forum/user/965-thalia "View Thalia's Profile")* on topic *[Re: Change pagination on product listing](/forum/4-how-to/73320-change-pagination-on-product-listing#73577 "Hi,  how can I change the pagination on my product listing?  I get this list at the moment: 30,5,10,15,20,25,30,50,100,all ... and I think it's too much. :dry:  I would prefer something like this: 25,50,100,all  I am looking at product / listing&#95;div (Display -&gt; Views Menu) :unsure: . Is this the file I should change, and how?  Thanks in advance, :)  Thalia")*

Thanks Xavier! ![:cheer:](/media/kunena/emoticons/2.png ":cheer:")

I had to comment also the line 263 because the initialization and the sorting didn't work right.

The function looks like that now,

*function getLimitBox(){
$limits = array ();

// $limits\[\] = JHTML::\_('select.option', (string)$this-&gt;limit);
for ($i = 25; $i &lt;= 100; $i += 25) {

$limits\[\] = JHTML::\_('select.option', "$i");

}

$limits\[\] = JHTML::\_('select.option', '0', JText::\_('all'));
return JHTML::\_('select.genericlist', $limits, 'limit'.$this-&gt;hikaSuffix, 'class="inputbox" size="1" onchange="this.form.submit()"', 'value', 'text', $this-&gt;\_viewall ? 0 : $this-&gt;limit);

}*

and my list is: 25, 50, 75, 100, all. ![:)](/media/kunena/emoticons/3.png ":)")

Thanks again,

Thalia

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

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

Less More

- Posts: 35
- Thank you received: 1
-
-

13 years 9 months ago [\#88451](#88451) by [bohemier](/forum/user/8593-bohemier "View bohemier's Profile")  Replied by *[bohemier](/forum/user/8593-bohemier "View bohemier's Profile")* on topic *[Re: Change pagination on product listing](/forum/4-how-to/73320-change-pagination-on-product-listing#88451 "Hi,  how can I change the pagination on my product listing?  I get this list at the moment: 30,5,10,15,20,25,30,50,100,all ... and I think it's too much. :dry:  I would prefer something like this: 25,50,100,all  I am looking at product / listing&#95;div (Display -&gt; Views Menu) :unsure: . Is this the file I should change, and how?  Thanks in advance, :)  Thalia")*

Is there a way to create a template override for this?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzczMzIwLWNoYW5nZS1wYWdpbmF0aW9uLW9uLXByb2R1Y3QtbGlzdGluZz90bXBsPW1hcmtkb3du) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 9 months ago [\#88619](#88619) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Re: Change pagination on product listing](/forum/4-how-to/73320-change-pagination-on-product-listing#88619 "Hi,  how can I change the pagination on my product listing?  I get this list at the moment: 30,5,10,15,20,25,30,50,100,all ... and I think it's too much. :dry:  I would prefer something like this: 25,50,100,all  I am looking at product / listing&#95;div (Display -&gt; Views Menu) :unsure: . Is this the file I should change, and how?  Thanks in advance, :)  Thalia")*

Hi,

In HikaShop 2.1.0 there would be a way to override the function thanks to a class function override.

Regards,

---

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

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

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