Vendor product listing pagination

  • Posts: 4
  • Thank you received: 0
10 years 6 months ago #156039

HI,
Could someone help me with pagination. Pagination not workin only in one place, when vendor login and goes to his product changes display type for example to show 40 product, pages is redirected to error 403, another problem is with pages. When i want to show next page click for example the second page, browser sceen goes to top but nothing more changes it display same vendor products.


-- url of the page with the problem -- : mywebsite.com/mypage
-- HikaShop version -- : 2.3.0
-- Joomla version -- : 3.3
-- PHP version -- : 5.3.3
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 6 months ago #156091

Hi,

What is your HikaMarket version number ?

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: 4
  • Thank you received: 0
10 years 6 months ago #156182

Hikamarket multivendor newest version

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 6 months ago #156184

Hi,

I can't reproduce your problem in my Joomla 3.3 website.
I think it is related with the override of the pagination system.

Please edit the file "administrator/components/com_hikamarket/helper/helper.php" and replace

	protected function getPagination($max = 500, $limit = 100) {
		if(empty($this->pageInfo))
			return false;

		jimport('joomla.html.pagination');
		if($this->pageInfo->limit->value == $max)
			$this->pageInfo->limit->value = $limit;
		$pagination = new JPagination($this->pageInfo->elements->total, $this->pageInfo->limit->start, $this->pageInfo->limit->value);
		$this->assignRef('pagination', $pagination);
		return $pagination;
	}
By
	protected function getPagination($max = 500, $limit = 100) {
		if(empty($this->pageInfo))
			return false;

		if($this->pageInfo->limit->value == $max)
			$this->pageInfo->limit->value = $limit;

		if(HIKASHOP_J30) {
			$pagination = hikashop_get('helper.pagination', $this->pageInfo->elements->total, $this->pageInfo->limit->start, $this->pageInfo->limit->value);
		} else {
			jimport('joomla.html.pagination');
			$pagination = new JPagination($this->pageInfo->elements->total, $this->pageInfo->limit->start, $this->pageInfo->limit->value);
		}
		$this->assignRef('pagination', $pagination);
		return $pagination;
	}
It should fix your problem.

Regards,

PS : Please understand that "newest" is not a version number. The latest available version is the 1.4.0 but the 1.4.1 is currently in preview/testing in several users websites. We will release it soon.


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: 11
  • Thank you received: 0
10 years 6 months ago #156555

I have same issue, i replaced the code but problem remains...


I have update market and then made changes to code, problem fixed. :)

Last edit: 10 years 6 months ago by rada88496.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 6 months ago #156564

Hi,

I can't reproduce your problem in my Joomla 3.3 website.
I think it is related with the override of the pagination system.

I can't still reproduce the problem.
Would it be possible to have some kind of access, something letting me see the problem directly and make some test ?

Thanks,


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: 4
  • Thank you received: 0
10 years 6 months ago #156744

i fix this problem by doing this... \gk_news2\html\com_hikamarket\productmarket\listing.php in 253 line, change from "product" to "listing"

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 6 months ago #156746

Hi,

Good to know that you found the problem.
It is something we fixed in HikaMarket 1.4.0, I suppose that you had an override for the view before that. So the task wasn't right.
www.hikashop.com/forum/22-market-bug-rep...3-errors.html#151507

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: 4
  • Thank you received: 0
10 years 6 months ago #156757

Yes it is because of override, i was to tired to understand this, but thanks for your help and of course new update :)

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

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