Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Limit number of new products to show on main page

Limit number of new products to show on main page

Locked
This thread is locked. New replies are disabled.
3 Feb 2010, 9:18 PM
#1
sashafiero avatar

sashafiero

New Zenner

Join Date:
Jan 2010
Location:
In the glow of a big LCD monitor
Posts:
19
Plugin Contributions:
0

Post #1 by sashafiero

Hello, all! I am enjoying setting up my first ZenCart.
I have a few questions unrelated to each other, so to keep each thread clear, I will post a few different threads.

I have:
Zen Cart 1.3.8a
Product Type: Book addon (by moku and hareslade)
A great deal of CSS and a few brute force modifications to layout (always through template additions, never messing with the original files).

On my shop's main page, I have one big featured product on top, then the New products below. I'd like to limit the New products to only show the latest 4.

I've noticed every time I refresh the page, the New products change their order... not sure why that happens or how they're being ordered at all!

I need to know where I can find the php/mysql that actually pulls new things from the database so I can put in an ORDER BY and a LIMIT 4.

Thank you in advance for any help!

3 Feb 2010, 9:25 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #2 by kobra

I need to know where I can find the php/mysql that actually pulls new things from the database so I can put in an ORDER BY and a LIMIT 4.
Easier han that

admin > config > maximum values > New Products Module > set to your desired value

Zen-Venom Get Bitten

3 Feb 2010, 9:43 PM
#3
sashafiero avatar

sashafiero

New Zenner

Join Date:
Jan 2010
Location:
In the glow of a big LCD monitor
Posts:
19
Plugin Contributions:
0

Post #3 by sashafiero

Of course! Thank you very much. The admin section is hard to wade through, sometimes, and not always easy for me to understand.