- Posts: 6
- Thank you received: 0
Turn off ajax pagination
13 years 7 months ago #90329
by puzali
Turn off ajax pagination was created by puzali
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.
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.
13 years 7 months ago #90336
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Turn off ajax pagination
Hi,
There is no ajax pagination in HikaShop.
Regards,
There is no ajax pagination in HikaShop.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: puzali
Please Log in or Create an account to join the conversation.
13 years 7 months ago #90340
by puzali
Replied by puzali on topic Turn off ajax pagination
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.
13 years 7 months ago #90446
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Turn off ajax pagination
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,
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.
Please Log in or Create an account to join the conversation.
13 years 7 months ago #90455
by puzali
Replied by puzali on topic Turn off ajax pagination
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.
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.
13 years 7 months ago #90691
by nicolas
Replied by nicolas on topic Turn off ajax pagination
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.
<?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.
13 years 7 months ago #90708
by puzali
Replied by puzali on topic Turn off ajax pagination
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.
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.
13 years 7 months ago #90849
by nicolas
Replied by nicolas on topic Turn off ajax pagination
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.
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.
13 years 5 months ago #98788
by puzali
Replied by puzali on topic Turn off ajax pagination
It worked! Thank you.
Please Log in or Create an account to join the conversation.
11 years 9 months ago #183647
by alexsp
Replied by alexsp on topic Turn off ajax pagination
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
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.
11 years 9 months ago #183684
by Xavier
Replied by Xavier on topic Turn off ajax pagination
Hi,
Not yet but it should be present in the next release of HikaShop.
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.256 seconds