Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Where is the 'number of products on display' set?

Where is the 'number of products on display' set?

26 May 2011, 6:52 PM
#1
creepyd avatar

creepyd

New Zenner

Join Date:
Jan 2009
Posts:
38
Plugin Contributions:
0

Post #1 by creepyd

At the top of a product listing, it says for example..
"Displaying 1 to 134 (of 134 products)"

All I want is to be able to reference that 134 from within product_listing.php (which is found in /Includes/Modules/[my template]).
I simply want to divide it by 3 in order to always have 3 rows in my product listing.

I have found this in /Includes/Languages/[my template]
However, I have no clue what %d means, or how to make use of this in product_listing.php.

define('TEXT_DISPLAY_NUMBER_OF_PRODUCTS', 'Displaying <strong>%d</strong> to <strong>%d</strong> (of <strong>%d</strong> products)');

An example page can be found here:
http://www.funkimunkibadges.co.uk/careershobbies-c-113.html

Thanks!

27 May 2011, 5:40 AM
#2
kobra avatar

kobra

Black Belt

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

Post #2 by kobra

Looks like you have the 3rd party addon for column grid installed

Should be in
admin > config > product listing > Product Listing - Columns Per Row > set to how many across you want

Zen-Venom Get Bitten