Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Passing variables to the Pagination class.


Recommended Posts

I'm testing some code in my test site and want to create an extensive filter system for the product listing page (listing_sql query in index.php).


The first problem was that passing too many variables and arrays through the URL (in a GET form) was creating issues (maximum URL length, passing multiple values through arrays, etc), so I changed the form to a POST form and changed the listing_sql query to receive the POST varaibles.


Everything was working OK, except the variables were not being passed through to the pagination script and were lost if I went to page 2.


SO, I tried a different approach and created session variables from the posted variables, which should now be retained in the query until I destroy or unset them. The problem is that when I click on the next page in the pagination, the session variables are gone.


Is there a session script somewhere that is destroying these session variables when a link is clicked, or should I revert back to the POST method, and if so, how can I adjust the split_page_result class to accept these variables.


Any help would be appreciated, as I am running out of hair to pull out.

My latest osCommerce work in progress


no outside links in signatures allowed, see PM

Link to comment
Share on other sites


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

  • Create New...