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

#   HikaShop Pagination issue

##

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

Less More

- Posts: 2
- Thank you received: 0
-
-

12 years 3 months ago [\#165235](#165235) by [galt](/forum/user/33516-galt "View galt's Profile")  *[HikaShop Pagination issue](/forum/31-development/869927-hikashop-pagination-issue#165235 "Hi. I have a question to HikaShop developers concerning page navigation issues. I'll begin with a demonstration as it's very clear and makes other words unnecessary. This HS installation uses Cherry Picker filters to filter products by parameters. So, open this page:   dormac.gewoon-webdesign.nl/producten/product-catalogus  Go to the page #4 and then select any filter from the left column. You should see a page with no products displayed. I think you know why it happens: the page number in HS is stored as a session and not passed via URL. So after applying the filter there are only 2 pages of products, but HS still tries to display products beginning from page #4 thus effectively missing the data.  It would be good if HS tolerated any URL parameters allowing other extensions (or any other code) to set pagination to beginning.  Or, maybe you can provide any insight on how third party code can re-set the pagination in HikaShop.  Thanks for your attention.  -- HikaShop version -- : latest")* was created by *[galt](/forum/user/33516-galt "View galt's Profile")*

Hi.
I have a question to HikaShop developers concerning page navigation issues.
I'll begin with a demonstration as it's very clear and makes other words unnecessary. This HS installation uses Cherry Picker filters to filter products by parameters.
So, open this page:
[ dormac.gewoon-webdesign.nl/producten/product-catalogus](http://dormac.gewoon-webdesign.nl/producten/product-catalogus)

Go to the page #4 and then select any filter from the left column.
You should see a page with no products displayed.
I think you know why it happens: the page number in HS is stored as a session and not passed via URL. So after applying the filter there are only 2 pages of products, but HS still tries to display products beginning from page #4 thus effectively missing the data.

It would be good if HS tolerated any URL parameters allowing other extensions (or any other code) to set pagination to beginning.

Or, maybe you can provide any insight on how third party code can re-set the pagination in HikaShop.

Thanks for your attention.

-- HikaShop version -- : latest

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

12 years 3 months ago [\#165247](#165247) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[HikaShop Pagination issue](/forum/31-development/869927-hikashop-pagination-issue#165247 "Hi. I have a question to HikaShop developers concerning page navigation issues. I'll begin with a demonstration as it's very clear and makes other words unnecessary. This HS installation uses Cherry Picker filters to filter products by parameters. So, open this page:   dormac.gewoon-webdesign.nl/producten/product-catalogus  Go to the page #4 and then select any filter from the left column. You should see a page with no products displayed. I think you know why it happens: the page number in HS is stored as a session and not passed via URL. So after applying the filter there are only 2 pages of products, but HS still tries to display products beginning from page #4 thus effectively missing the data.  It would be good if HS tolerated any URL parameters allowing other extensions (or any other code) to set pagination to beginning.  Or, maybe you can provide any insight on how third party code can re-set the pagination in HikaShop.  Thanks for your attention.  -- HikaShop version -- : latest")*

Hi,

Here is the solution to change the pagination settings:
[ hikashop.com/forum/2-general-talk-about-...ts-shown.html#126533](https://hikashop.com/forum/2-general-talk-about-hikashop/862572-any-way-to-change-the-number-of-products-shown.html#126533)

In your case, the following code should be more adapted: Code:

&lt;?php $suffix = $this-&gt;pagination-&gt;hikaSuffix; $this-&gt;pagination = hikashop_get('helper.pagination', $this-&gt;pageInfo-&gt;elements-&gt;total, 0, $this-&gt;pageInfo-&gt;limit-&gt;value); $this-&gt;pagination-&gt;hikaSuffix = $suffix; ?&gt;

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

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

Less More

- Posts: 2
- Thank you received: 0
-
-

12 years 2 months ago [\#165641](#165641) by [galt](/forum/user/33516-galt "View galt's Profile")  Replied by *[galt](/forum/user/33516-galt "View galt's Profile")* on topic *[HikaShop Pagination issue](/forum/31-development/869927-hikashop-pagination-issue#165641 "Hi. I have a question to HikaShop developers concerning page navigation issues. I'll begin with a demonstration as it's very clear and makes other words unnecessary. This HS installation uses Cherry Picker filters to filter products by parameters. So, open this page:   dormac.gewoon-webdesign.nl/producten/product-catalogus  Go to the page #4 and then select any filter from the left column. You should see a page with no products displayed. I think you know why it happens: the page number in HS is stored as a session and not passed via URL. So after applying the filter there are only 2 pages of products, but HS still tries to display products beginning from page #4 thus effectively missing the data.  It would be good if HS tolerated any URL parameters allowing other extensions (or any other code) to set pagination to beginning.  Or, maybe you can provide any insight on how third party code can re-set the pagination in HikaShop.  Thanks for your attention.  -- HikaShop version -- : latest")*

Hi Xavier. Thanks for your reply.
So basically you're suggesting to edit HS files. This is not the solution I'm looking for as this is a rather common issue and _every_ HS user will need to do edits to make things work in this situation.
And I want to avoid it. Extensions should communicate to resolve the issue without requiring any manual edits.
Ideally, if HS started to tolerate any pagination parameter, whatever it be: "start", "limitstart", "page".. etc.
Is this something that we can hope for?

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

12 years 2 months ago [\#165647](#165647) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[HikaShop Pagination issue](/forum/31-development/869927-hikashop-pagination-issue#165647 "Hi. I have a question to HikaShop developers concerning page navigation issues. I'll begin with a demonstration as it's very clear and makes other words unnecessary. This HS installation uses Cherry Picker filters to filter products by parameters. So, open this page:   dormac.gewoon-webdesign.nl/producten/product-catalogus  Go to the page #4 and then select any filter from the left column. You should see a page with no products displayed. I think you know why it happens: the page number in HS is stored as a session and not passed via URL. So after applying the filter there are only 2 pages of products, but HS still tries to display products beginning from page #4 thus effectively missing the data.  It would be good if HS tolerated any URL parameters allowing other extensions (or any other code) to set pagination to beginning.  Or, maybe you can provide any insight on how third party code can re-set the pagination in HikaShop.  Thanks for your attention.  -- HikaShop version -- : latest")*

Hi,

So I guess that the extension should have such kind of code to reset the pagination.
We will see how we can improve that.

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

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

[](#top)
