Forums / Templates, Stylesheets, Page Layout / NO more next page .. auto load on scroll

NO more next page .. auto load on scroll

Views: 1,994

Results 1 to 6 of 6
21 Oct 2014, 4:44 PM
#2
bislewl avatar

bislewl

Totally Zenned

Join Date:
Dec 2011
Location:
Wisconsin, USA
Posts:
674
Plugin Contributions:
12

Re: NO more next page .. auto load on scroll

I have seen it using jquery and an ajax call that loads the content when a user scrolls down. However it is a significant amount of work.

21 Oct 2014, 9:18 PM
#3
jennydutch avatar

jennydutch

New Zenner

Join Date:
Apr 2014
Location:
Bronx, New York, United States
Posts:
83
Plugin Contributions:
0

Re: NO more next page .. auto load on scroll

bislewl:

I have seen it using jquery and an ajax call that loads the content when a user scrolls down. However it is a significant amount of work.

how can i do that any idea ?

21 Oct 2014, 9:27 PM
#4
bislewl avatar

bislewl

Totally Zenned

Join Date:
Dec 2011
Location:
Wisconsin, USA
Posts:
674
Plugin Contributions:
12

Re: NO more next page .. auto load on scroll

Couple ideas off the top of my head.

Method 1.) Have jquery call the next page in an ajax request. Then grab the product listing container from that and append your current. A difficult part is that when you do that you will need to modify the navigation history.

Method 2.) Create an ajax script that will create a page with JUST the product listing.

#2 is probably a better solution but more work.

21 Oct 2014, 9:31 PM
#5
jennydutch avatar

jennydutch

New Zenner

Join Date:
Apr 2014
Location:
Bronx, New York, United States
Posts:
83
Plugin Contributions:
0

Re: NO more next page .. auto load on scroll

bislewl:

Couple ideas off the top of my head.

Method 1.) Have jquery call the next page in an ajax request. Then grab the product listing container from that and append your current. A difficult part is that when you do that you will need to modify the navigation history.

Method 2.) Create an ajax script that will create a page with JUST the product listing.

#2 is probably a better solution but more work.

Thanks for your replay .. i am new zen cart.. member

you can help to fix Method 2.) step by step ?

I want it for product listing page

21 Oct 2014, 9:52 PM
#6
bislewl avatar

bislewl

Totally Zenned

Join Date:
Dec 2011
Location:
Wisconsin, USA
Posts:
674
Plugin Contributions:
12

Re: NO more next page .. auto load on scroll

It will not be for the faint of heart. I would create a new file in ajax/ that basically recreates the product listing page given the current GET variables and modifying the page one. Then call that script using jquery and $.ajax to retrieve/populate the page. It's hard for me to explain how to do this. I know Numinix has done something much better than this, you may wish to contact them or another developer to perform this task.