Zen Cart Logo
Forums / General Questions / A few questions about product listing

A few questions about product listing

Locked

Views: 894

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
4 Aug 2007, 10:27 PM
#1
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

A few questions about product listing

I want to:

  1. Let customers choose the maximum number of products listed per page.
  2. Jump to any page they want.

The 2nd taks is not so hard, but how can I do the first 1? I tried max_display=24 but that doesn't work as expected.

Regards,
yellow1912

4 Aug 2007, 11:26 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: A few questions about product listing

There's a deceptive amount of custom coding involved in this. At the most obvious level your would need to track down the code for each of the listings and find out the name of the Admin Switch that defines the items per page for that listing, intercept where that is applied to a variable for use in the SQL database extraction and insert the value you have gotten from the visitor.

But of course, that's just the start. You also have to get the value from the visitor via a form of some sort and save it into both a session variable (for immediate use) and most likely a cookie for future use.

Then when a visitor returns, you would need to read in the cookie and set the session variable value automatically.