Jump to content

Recommended Posts

Hi

 

I am trying to implement infinite scrolling feature in my prestashop for the product page and for the Featured Product section on home page.

 

I know the code and understand how it works but don't know how to implement in prestashop.

 

 

Can anybody please guide me, what files do I need to modify for this.

Link to comment
Share on other sites

Hi,

Its' a bit complex, but since you already know the infinite scrolling part you have half the job done. The way I would do it is calling a custom ajax file you place in a module's folder (say, infinitescroll). Then, this ajax file would call the main module class infinitescrolling.php, which would get POST or GET data and retrieve the correct products with pagination. After it's done, I'd simply fertch product_list.tpl (theme folder), and from ther ajax call, append the result to the content holder.

  • Like 3
Link to comment
Share on other sites

  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...