Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Number of Products doesn't matter....Help Please

Number of Products doesn't matter....Help Please

Locked

Views: 1,298

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
12 Jun 2007, 11:58 PM
#1
greatbig47 avatar

greatbig47

New Zenner

Join Date:
Aug 2006
Posts:
32
Plugin Contributions:
0

Number of Products doesn't matter....Help Please

I want to get rid of this:

Displaying 1 to 10 (of 23 products)

On this page...

http://misight.com/index.php?main_page=index&cPath=117

Anyone tell me where to edit this?
Thanks! This forum is great!

14 Jun 2007, 12:58 PM
#2
lib99 avatar

lib99

Totally Zenned

Join Date:
Dec 2004
Location:
New York, USA
Posts:
965
Plugin Contributions:
0

Re: Number of Products doesn't matter....Help Please

I don't recall and admin switch for turning OFF that text. Most likely because it is helpful information to remind your visitors that there are more products on subsequent pages. :smile:

You can set it to display Top only, Bottom only, or both Top and Bottom of the listing. That setting is in Admin->Configuration->Product Listing->Prev/Next Split Page Navigation (1-top, 2-bottom, 3-both)

If that's not enough, then in your custom override copy of tpl_modules_product_listing.php you can comment out the script and it won't display.

ZC ver 1.3.7 look around line # 26 and also 42

change:```

<?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?>

to add the 2 slashes //```
<?php // echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?>

That's the "cheap" way to get rid of it. :wink:

16 Nov 2008, 7:37 PM
#3
alicia1234 avatar

alicia1234

Zen Follower

Join Date:
Nov 2008
Location:
Massachusetts
Posts:
164
Plugin Contributions:
0

Re: Number of Products doesn't matter....Help Please

This works fine, but beware: there are TWO places in the file where you have to comment it out. I only did the first one I found and it didn't get rid of the "displaying ..." thing. Then I decided to see if there were other occurences of the same code, and there was one more. Commented that one out and finally got rid of it.
v. 1.3.8a

17 Nov 2008, 10:27 AM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Number of Products doesn't matter....Help Please

Rather than hack the core code, just add this to the bottom of your stylesheet.css file:

#productsListingTopNumber, #productsListingBottomNumber {
display: none;
}
18 Nov 2008, 3:32 PM
#5
alicia1234 avatar

alicia1234

Zen Follower

Join Date:
Nov 2008
Location:
Massachusetts
Posts:
164
Plugin Contributions:
0

Re: Number of Products doesn't matter....Help Please

Nice! Thanks!