Vendor products list pagination problem

  • Posts: 205
  • Thank you received: 12
3 years 8 months ago #330402

-- HikaShop version -- : 4.4.1
-- HikaMarket version -- : 3.1.1
-- Joomla version -- : 3.9.25
-- PHP version -- : 7.4.14

Hello

When vendor views his products list (vendor control panel/products) the pagination links always show the first page, even if the URL changes to product?limitstart=20&limit=20.

How can this be fixed?

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

  • Posts: 26156
  • Thank you received: 4028
  • MODERATOR
3 years 8 months ago #330404

Hello,

I cannot reproduce the issue in the demo website (by forcing the pagination to a very low value in order to have several pages).
Would it be possible to have an access to your vendor panel to see the issue directly ?
Please use the contact us form to send us such private information (with a link to that forum thread so the support team will assign it to me).

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 205
  • Thank you received: 12
3 years 8 months ago #330412

All required info were sent through the contact us form.

Thank you

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

  • Posts: 26156
  • Thank you received: 4028
  • MODERATOR
3 years 8 months ago #330431

Hello,

Thank you for the credentials.
I was able to see that you're not using the "category explorer" and that your issue is related to a patch I made in order to fix the pagination, but should be conditioned with the category explorer.

In the file "components/com_hikamarket/views/productmarket/view.html.php" please replace

if($cid != (int)$app->getUserState(HIKAMARKET_COMPONENT.'.product.listing_cid')) {
By
if($category_explorer && $cid != (int)$app->getUserState(HIKAMARKET_COMPONENT.'.product.listing_cid')) {
And it will fix your issue.

That patch will be include in the next release.

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: oxido, liaskas

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

  • Posts: 205
  • Thank you received: 12
3 years 8 months ago #330432

Thank you Jerome, it worked.

By the way... is there a way to hide the limit selector just above the pagination so that we do not allow vendors to list more than 20 products?

Thank you

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

  • Posts: 26156
  • Thank you received: 4028
  • MODERATOR
3 years 8 months ago #330433

Hello,

You can override the "productmarket / listing" view and change how the pagination is called.

	<div class="hikamarket_pagination">
		<?php echo $this->pagination->getListFooter(); ?>
		<?php echo $this->pagination->getResultsCounter(); ?>
	</div>
I suppose that you can call directly the function "getPaginationLinks" with good options to not display the "limit" dropdown.
github.com/joomla/joomla-cms/blob/stagin.../Pagination.php#L533
I get that the option "showLimitBox" should do the job
github.com/joomla/joomla-cms/blob/stagin...nation/links.php#L54

For more details, I recommend you to contact the Joomla community.

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Moderators: Obsidev
Time to create page: 0.065 seconds
Powered by Kunena Forum