Turn off ajax pagination

  • Posts: 6
  • Thank you received: 0
11 years 8 months ago #90329

Hello!
How can I turn off your creative AJAX pagination and get just simple URLs of pages?
As it is now it makes a big problem for users with back button.

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

  • Posts: 26151
  • Thank you received: 4027
  • MODERATOR
11 years 8 months ago #90336

Hi,

There is no ajax pagination in HikaShop.

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: puzali

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

  • Posts: 6
  • Thank you received: 0
11 years 8 months ago #90340

How to make links directing on pages to be not "onclick javascript" but simply "href" links?

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

  • Posts: 26151
  • Thank you received: 4027
  • MODERATOR
11 years 8 months ago #90446

Hi,

The pagination system is the joomla pagination system.
It is possible to modify the "form" in order to not send parameters by "post" but by "get" but it would generate weird and long url.

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

Yes, the pagination is by joomla, but you have modofied it by your class "hikashopPaginationHelper".
How can I turn off this your modification?

If you change "post" to "get", this will not change links to be "href", the links will remain "javascript onclick". So this is not a solution.

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

  • Posts: 82726
  • Thank you received: 13342
  • MODERATOR
11 years 8 months ago #90691

If you want to use the joomla pagination, edit the file administrator/components/com_hikashop/helpers/pagination.php and remove all the code and simply have that line:

<?php class hikashopPaginationHelper extends JPagination { }

However, please note that we cannot guarantee anything on the result after that modification. It might not work at all.

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

  • Posts: 6
  • Thank you received: 0
11 years 8 months ago #90708

Thank you Nicolas.
Just tried to remove the code. The pagination does not work, as you've said. Probably it is integrated with Hikashop in some other places.
Do you have any ideas on how to solve the above mentioned problem? When the user goes to the page 2 and then ckicks "home", he finds himself at page 2 again, but not page 1. The same will be if not to click "home" but press "back" button.
"Post" to "get" I have already changed, it does not help.

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

  • Posts: 82726
  • Thank you received: 13342
  • MODERATOR
11 years 8 months ago #90849

That's normal and it has nothing to do with the javascript.
That's because the pagination is stored in the session so that if you come back to the listing page later (for example from the product page), you are still on the same page.

You can change the line:
$pageInfo->limit->start = $app->getUserStateFromRequest( $this->paramBase.'.limitstart', 'limitstart_'.$this->params->get('main_div_name').$category_selected, 0, 'int' );

to:
$pageInfo->limit->start = JRequest::getVar('limitstart_'.$this->params->get('main_div_name').$category_selected, 0);

in the file components/com_hikashop/views/product/view.html.php and the current page won't be stored in the session.

The following user(s) said Thank You: puzali

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

  • Posts: 6
  • Thank you received: 0
11 years 6 months ago #98788

It worked! Thank you.

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

  • Posts: 16
  • Thank you received: 0
9 years 10 months ago #183647

Hi,

i would like to continue the discussion on this issue as i think it is a major usability issue.

As you probably already know, users almost always use the back button of their browser to navigate one step back. But with the pagination like this, it results in a confirm form submission message from the browser or even a blank page.
Apart from this, not being able to store or send to a friend a link that includes the page number is also something very uncommon i believe.

So is there a solution that includes, page number in the links of each page and no confirm form re-submission messages from the browser when using back button of the browser ?

Thanks in advance
Kindest regards
Alex

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

  • Posts: 13201
  • Thank you received: 2322
9 years 10 months ago #183684

Hi,

Not yet but it should be present in the next release of HikaShop. :)

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

Time to create page: 0.089 seconds
Powered by Kunena Forum