Pagination gone when "Random Items" selected to "Yes"

  • Posts: 50
  • Thank you received: 0
4 years 1 month ago #329589

-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.24
-- PHP version -- : 7.4
-- Browser(s) name and version -- : Firefox 85.0.1

Hi,
Is there something i'm missing in the concept here?
On any product listing, when the option "Random Items" is set to yes, pagination disappears...
It takes me quite some time to find out why i face this situation on different listings but finally today that's where i land to.
Thanks in advance for your clarification on the matter.

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

  • Posts: 83404
  • Thank you received: 13498
  • MODERATOR
4 years 1 month ago #329594

Hi,

That's because of how the random system works.
If we were keeping the pagination displayed with the random option activated, each page of the pagination would display random elements of the whole listing. So on page 2, you might find products you had already seen on page 1, etc. And even going through all the pages, you might not see some of the products. To avoid that the solution would be to store the ids of the elements on each page so as to skip them on the other pages and also redisplay them if you come back to the page.
That's actually an improvements we've added in HikaShop 4.4.1 that we've released a few days ago:
www.hikashop.com/support/documentation/5...ashop-changelog.html

The "random" option can now be used together with pagination on products listings.
The "random" and "infinite scroll" options can now be used together on products listings.

The following user(s) said Thank You: Pgva

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

Time to create page: 0.056 seconds
Powered by Kunena Forum