Jump to content

[SOLVED] Previous/Next Above Product Images - Pagination?


rayfinkel2

Recommended Posts

Previous/Next Above Product Images - Pagination?

 

--------------------------------------------------------------------------------

 

Hi,

 

I am currently building a website and I want to figure out how the programmer added the previous and next buttons above the image on this page:

http://www.yandy.com/Microfiber-Halter-Bandeau-Top-Pants.aspx

 

When you click next, it goes to the next product in that category. I understand how pagination works, but am having trouble grasping how this programmer made this work.

 

Any ideas?

 

Thank You,

Ray

 

Yeah Tom, that makes sense, but the query will change depending on what you searched for or what category you are in.  My guess is that when you go to a category or do a search and then choose a product, it pulls in an array of all prod_id's in the category.  Then it passes that array to the product page and uses it to determine the next or previous page.  Does that sound right?

Ok Tom.  It took me a little bit, but I think I understand what you are saying.  I should pass the prod_id and some part of the query that would recreate it in the products page (maybe the category_id or search term) and then recreate the query with a limit.  Makes sense.  I will try that, but if anyone else has an easier way, please let me know.

 

      Thanks Tom!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.