[Skip to main content](#vessel-content)

#   Infinity scroll with history back

##

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

8 years 2 weeks ago [\#300238](#300238) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  *[Infinity scroll with history back](/forum/50-feature-request/896183-infinity-scroll-with-history-back#300238 "Hi,  As we see some increase in mobile users past few years from 55% to almost 80% we would like to use infinity scroll feature. This would feel much better as users on mobile are more intend to scroll. So this would increase overall user experiance.  However as we know, our infinity scroll has no history back, those after each new item appear and clicking on it, then going back you will be on the top of the page. Those it's useless if u have a lot of products...  So would be great if hikashop could consider to add something like this:   goo.gl/2prwBk  As you can see on each click/load it will add some kinda parameter to url &quot;page=1, page=2&quot; and so on... Those going back from product to category page you are on same level as you was before.  Any chance hikashop could improve infinity scroll?  If not, we would like to get some hints how it could be done.  I don't think its a lot of work if you know hikashop code well.  Kind Regards")* was created by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")*

Hi,

As we see some increase in mobile users past few years from 55% to almost 80% we would like to use infinity scroll feature. This would feel much better as users on mobile are more intend to scroll. So this would increase overall user experiance.

However as we know, our infinity scroll has no history back, those after each new item appear and clicking on it, then going back you will be on the top of the page. Those it's useless if u have a lot of products...

So would be great if hikashop could consider to add something like this: [ goo.gl/2prwBk](https://goo.gl/2prwBk)

As you can see on each click/load it will add some kinda parameter to url "page=1, page=2" and so on... Those going back from product to category page you are on same level as you was before.

Any chance hikashop could improve infinity scroll?

If not, we would like to get some hints how it could be done.

I don't think its a lot of work if you know hikashop code well.

Kind Regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC84OTYxODMtaW5maW5pdHktc2Nyb2xsLXdpdGgtaGlzdG9yeS1iYWNrP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86586
- Thank you received: 14325
-
-

8 years 2 weeks ago [\#300248](#300248) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Infinity scroll with history back](/forum/50-feature-request/896183-infinity-scroll-with-history-back#300248 "Hi,  As we see some increase in mobile users past few years from 55% to almost 80% we would like to use infinity scroll feature. This would feel much better as users on mobile are more intend to scroll. So this would increase overall user experiance.  However as we know, our infinity scroll has no history back, those after each new item appear and clicking on it, then going back you will be on the top of the page. Those it's useless if u have a lot of products...  So would be great if hikashop could consider to add something like this:   goo.gl/2prwBk  As you can see on each click/load it will add some kinda parameter to url &quot;page=1, page=2&quot; and so on... Those going back from product to category page you are on same level as you was before.  Any chance hikashop could improve infinity scroll?  If not, we would like to get some hints how it could be done.  I don't think its a lot of work if you know hikashop code well.  Kind Regards")*

Hi,

There is basically three parts to do that:
1. You need to add some javascript to the current infinite scroll to update the URL and potentially the browser history.
2. You need to add some more javascript to the current infinite scroll so that when you arrive on a products listing with that "page" parameter you load the products of the page and scroll down to it.
3. The biggest problem with point 2 is if you arrive on a products listing with a page number like 10 for example. You can have it load the products of page 10 and scroll to it but then what if the customer scrolls back up ? You have to load also all the 8 previous pages of products OR you need to put a system to handle the scroll up and insert the products "in between". The current system isn't really made to handle the "inbetween" insert. And loading 9 pages of products before scrolling down to the place where the customer was will potentially take a lot of time, especially on mobile where you don't have as much download speed as you would have on a computer. So to do that well, it might require some extensive changes to the current infinite scroll system.

Anyways, to do all these, you'll mainly want to edit the code in the listing_div view file of the product view where the whole infinite scroll system is handled.

We do want to work on these points in the future, but didn't get round to it yet.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC84OTYxODMtaW5maW5pdHktc2Nyb2xsLXdpdGgtaGlzdG9yeS1iYWNrP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

8 years 2 weeks ago [\#300276](#300276) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[Infinity scroll with history back](/forum/50-feature-request/896183-infinity-scroll-with-history-back#300276 "Hi,  As we see some increase in mobile users past few years from 55% to almost 80% we would like to use infinity scroll feature. This would feel much better as users on mobile are more intend to scroll. So this would increase overall user experiance.  However as we know, our infinity scroll has no history back, those after each new item appear and clicking on it, then going back you will be on the top of the page. Those it's useless if u have a lot of products...  So would be great if hikashop could consider to add something like this:   goo.gl/2prwBk  As you can see on each click/load it will add some kinda parameter to url &quot;page=1, page=2&quot; and so on... Those going back from product to category page you are on same level as you was before.  Any chance hikashop could improve infinity scroll?  If not, we would like to get some hints how it could be done.  I don't think its a lot of work if you know hikashop code well.  Kind Regards")*

Hi,

Thanks for replay Nicolas.

1. This isn't big issue and could be done easily i think.
2. and 3. As you can see in my link provided. If you are, as example, on page 4 and going back from product page to product listing page, you are on same page 4. The difference is that it loads only products from that page and "view previous products" button appears on the top of the listing.
So there is no need to load previous items because user may do it by him self if needed. Infinity scroll works in both directions. This is there my knowledge stops and i am not sure how can this be done.

I hope you can add such feature in your todo list.

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC84OTYxODMtaW5maW5pdHktc2Nyb2xsLXdpdGgtaGlzdG9yeS1iYWNrP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86586
- Thank you received: 14325
-
-

8 years 2 weeks ago [\#300281](#300281) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Infinity scroll with history back](/forum/50-feature-request/896183-infinity-scroll-with-history-back#300281 "Hi,  As we see some increase in mobile users past few years from 55% to almost 80% we would like to use infinity scroll feature. This would feel much better as users on mobile are more intend to scroll. So this would increase overall user experiance.  However as we know, our infinity scroll has no history back, those after each new item appear and clicking on it, then going back you will be on the top of the page. Those it's useless if u have a lot of products...  So would be great if hikashop could consider to add something like this:   goo.gl/2prwBk  As you can see on each click/load it will add some kinda parameter to url &quot;page=1, page=2&quot; and so on... Those going back from product to category page you are on same level as you was before.  Any chance hikashop could improve infinity scroll?  If not, we would like to get some hints how it could be done.  I don't think its a lot of work if you know hikashop code well.  Kind Regards")*

Hi,

As I said previously, we do want to work on these points in the future, but didn't get round to it yet. So that feature is already on our todo list.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC84OTYxODMtaW5maW5pdHktc2Nyb2xsLXdpdGgtaGlzdG9yeS1iYWNrP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[yanliom](/forum/user/45218-yanliom "View yanliom's Profile")**
- [![yanliom's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/45218-yanliom "View yanliom's Profile")
- [ Offline](/forum/user/45218-yanliom)

Less More

- Posts: 66
- Thank you received: 1
-
-

6 years 2 weeks ago [\#325547](#325547) by [yanliom](/forum/user/45218-yanliom "View yanliom's Profile")  Replied by *[yanliom](/forum/user/45218-yanliom "View yanliom's Profile")* on topic *[Infinity scroll with history back](/forum/50-feature-request/896183-infinity-scroll-with-history-back#325547 "Hi,  As we see some increase in mobile users past few years from 55% to almost 80% we would like to use infinity scroll feature. This would feel much better as users on mobile are more intend to scroll. So this would increase overall user experiance.  However as we know, our infinity scroll has no history back, those after each new item appear and clicking on it, then going back you will be on the top of the page. Those it's useless if u have a lot of products...  So would be great if hikashop could consider to add something like this:   goo.gl/2prwBk  As you can see on each click/load it will add some kinda parameter to url &quot;page=1, page=2&quot; and so on... Those going back from product to category page you are on same level as you was before.  Any chance hikashop could improve infinity scroll?  If not, we would like to get some hints how it could be done.  I don't think its a lot of work if you know hikashop code well.  Kind Regards")*

Hello,

I was also looking for this feature. It is essential for mobile users that "hit back" and loose all their scroll history :dry:

(there is a dev js framework for infinity scroll out there that may help pave the way)

Thank you!
Yannis

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC84OTYxODMtaW5maW5pdHktc2Nyb2xsLXdpdGgtaGlzdG9yeS1iYWNrP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86586
- Thank you received: 14325
-
-

6 years 2 weeks ago [\#325568](#325568) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Infinity scroll with history back](/forum/50-feature-request/896183-infinity-scroll-with-history-back#325568 "Hi,  As we see some increase in mobile users past few years from 55% to almost 80% we would like to use infinity scroll feature. This would feel much better as users on mobile are more intend to scroll. So this would increase overall user experiance.  However as we know, our infinity scroll has no history back, those after each new item appear and clicking on it, then going back you will be on the top of the page. Those it's useless if u have a lot of products...  So would be great if hikashop could consider to add something like this:   goo.gl/2prwBk  As you can see on each click/load it will add some kinda parameter to url &quot;page=1, page=2&quot; and so on... Those going back from product to category page you are on same level as you was before.  Any chance hikashop could improve infinity scroll?  If not, we would like to get some hints how it could be done.  I don't think its a lot of work if you know hikashop code well.  Kind Regards")*

Hi,

Well, it's still on our todo list. We worked on other things
so we didn't more forward with this yet.
We did improve the infinite scroll mechanism so that the elements can be properly referenced but we didn't work yet on the history mechanism.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC84OTYxODMtaW5maW5pdHktc2Nyb2xsLXdpdGgtaGlzdG9yeS1iYWNrP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")**
- [![lousyfool's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28604.jpg)](/forum/user/28604-lousyfool "View lousyfool's Profile")
- [ Offline](/forum/user/28604-lousyfool)

Less More

- Posts: 2143
- Thank you received: 746
-
- [](http://www.inphase.one)
-

6 years 2 weeks ago -  6 years 2 weeks ago [\#325575](#325575) by [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")  Replied by *[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")* on topic *[Infinity scroll with history back](/forum/50-feature-request/896183-infinity-scroll-with-history-back#325575 "Hi,  As we see some increase in mobile users past few years from 55% to almost 80% we would like to use infinity scroll feature. This would feel much better as users on mobile are more intend to scroll. So this would increase overall user experiance.  However as we know, our infinity scroll has no history back, those after each new item appear and clicking on it, then going back you will be on the top of the page. Those it's useless if u have a lot of products...  So would be great if hikashop could consider to add something like this:   goo.gl/2prwBk  As you can see on each click/load it will add some kinda parameter to url &quot;page=1, page=2&quot; and so on... Those going back from product to category page you are on same level as you was before.  Any chance hikashop could improve infinity scroll?  If not, we would like to get some hints how it could be done.  I don't think its a lot of work if you know hikashop code well.  Kind Regards")*

> yanliom wrote: It is essential for mobile users that "hit back"

...and not only for mobile users.

So: +1

---

Need help with customisations of layouts, style or other site development? [ PM me!](/component/uddeim/?task=new)
(Don't forget to turn on [ "E-mail notification of new messages"](/component/uddeim/?task=settings))

Last edit: 6 years 2 weeks ago by [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC84OTYxODMtaW5maW5pdHktc2Nyb2xsLXdpdGgtaGlzdG9yeS1iYWNrP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[multigeo](/forum/user/41399-multigeo "View multigeo's Profile")**
- [![multigeo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/41399-multigeo "View multigeo's Profile")
- [ Offline](/forum/user/41399-multigeo)

Less More

- Posts: 26
- Thank you received: 3
-
-

5 years 7 months ago [\#331537](#331537) by [multigeo](/forum/user/41399-multigeo "View multigeo's Profile")  Replied by *[multigeo](/forum/user/41399-multigeo "View multigeo's Profile")* on topic *[Infinity scroll with history back](/forum/50-feature-request/896183-infinity-scroll-with-history-back#331537 "Hi,  As we see some increase in mobile users past few years from 55% to almost 80% we would like to use infinity scroll feature. This would feel much better as users on mobile are more intend to scroll. So this would increase overall user experiance.  However as we know, our infinity scroll has no history back, those after each new item appear and clicking on it, then going back you will be on the top of the page. Those it's useless if u have a lot of products...  So would be great if hikashop could consider to add something like this:   goo.gl/2prwBk  As you can see on each click/load it will add some kinda parameter to url &quot;page=1, page=2&quot; and so on... Those going back from product to category page you are on same level as you was before.  Any chance hikashop could improve infinity scroll?  If not, we would like to get some hints how it could be done.  I don't think its a lot of work if you know hikashop code well.  Kind Regards")*

This may not work for everybody, but I circumvented this history problem by creating no history and opening the product in a different browser tab.
This while waiting for a better solution from the hika team. ![:)](/media/kunena/emoticons/3.png ":)")

I added this line right after the first IF-statement in file "product/listing_img_title.php".
**$link = $link.'" target="\_blank';**

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC84OTYxODMtaW5maW5pdHktc2Nyb2xsLXdpdGgtaGlzdG9yeS1iYWNrP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.070 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
