Skip to main content

Vendor products list pagination problem

More
5 years 7 months ago #330402 by liaskas
-- 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.

More
5 years 7 months ago #330404 by Jerome
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.

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

More
5 years 7 months ago #330412 by liaskas
All required info were sent through the contact us form.

Thank you

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

More
5 years 7 months ago #330431 by Jerome
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
Code:
if($cid != (int)$app->getUserState(HIKAMARKET_COMPONENT.'.product.listing_cid')) {
By
Code:
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.
The following user(s) said Thank You: oxido, liaskas

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

More
5 years 7 months ago #330432 by liaskas
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.

More
5 years 7 months ago #330433 by Jerome
Hello,

You can override the "productmarket / listing" view and change how the pagination is called.
Code:
<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.

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

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