Front end order listing pagination

  • Posts: 1119
  • Thank you received: 114
5 years 9 months ago #294432

Hi,

Is there a way to have pagination limit to 5 instead of 20 in front end order listing page?

Thanks

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

  • Posts: 4486
  • Thank you received: 609
  • MODERATOR
5 years 9 months ago #294445

Hello,

There is no options to manage this in HikaShop, as it's manage by Joomla.
Note, that you can modify the number of element display per page, and so have less page needed.



But if you don't proceed like this because by example that will lead to have too much elements per page.
Maybe you can't try this : Joomla Forum

Regards

Last edit: 5 years 9 months ago by Philip.

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

  • Posts: 1119
  • Thank you received: 114
5 years 9 months ago #294455

Hi,

Your screenshot shows items on product page. What I am looking is to have different limit on order listing page. I have tried to set it in joomla global configurations but it made no difference.

The reason I am asking is because we are loading all order data on order listing page and having 20 of them per page could give page speed issues.

Thanks

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

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
5 years 9 months ago #294458

Hi,

That setting from the Joomla configuration is taken into account. Note however that you need to logout/login after you've changed in order to see the difference on the orders listing.

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

  • Posts: 1119
  • Thank you received: 114
5 years 9 months ago #294487

Hi,

Hmm. I have tried to logout and login again, tried to clear cache but still not luck. It shows default 20. I have 3 orders. I have set default list limit to 5 in global configuration.

Is there any other reason why it shouldn't work?

Thanks

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

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
5 years 9 months ago #294498

Hi,

Check your configuration.php file. There is the parameter "list_limit" in it and that's the one used by HikaShop.

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

  • Posts: 1119
  • Thank you received: 114
5 years 9 months ago #294579

Hi,

1.So that's really strange. I have set parameter like this "public $list_limit = '5';" and it made no difference. It looks that these settings only effects BACK-END and it works well there but not in front-end...Could you please try it on your end?

Thanks

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

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
5 years 9 months ago #294606

Hi,

You actually only get 5 orders on the page, and I confirm the result on my end.
However, I can see that the pagination dropdown is not correct.
Then try adding the code:

$app = JFactory::getApplication();
		$minimum = $app->getCfg('list_limit');
after the line:
function getLimitBox($minimum = 20) {
in the file administrator/components/com_hikashop/helpers/pagination.php and that will fix the dropdown if that's what you're talking about.

The following user(s) said Thank You: kyratn

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

  • Posts: 1119
  • Thank you received: 114
5 years 9 months ago #294620

Hi,

Oh, my bad. I had only 3 orders and didn't think that dropdown was the issue. I have added your fix and it has fixed the issue with dropdown. All fine now.
Will fix be included in hikashop by default??

Update. It seems the fix gives issues on product listing. Trying to go to next page, page just reloads and shows same page with limit set in global configuration!

Thanks for support Nicolas

Last edit: 5 years 9 months ago by kyratn.

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

  • Posts: 12953
  • Thank you received: 1778
5 years 8 months ago #294622

Hello,

Yes that fix will be part of futur Hikashop versions.

Best regards,
Mohamed Thelji.

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

  • Posts: 1119
  • Thank you received: 114
5 years 8 months ago #294658

Hi,

That's great but I would like to note that fix provided by Nicolas gives issues on product listing page pagination as per my previous message above.

Thank you

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

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
5 years 8 months ago #294660

Hi,

Yes, we'll have a more complex patch for the release which will also take that into account.

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

Time to create page: 0.079 seconds
Powered by Kunena Forum