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

 

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.