Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Sep 2006
    Location
    West of Ireland
    Posts
    174
    Plugin Contributions
    0

    Default move or remove "displaying 91 to 100 products (of 101)"

    Is it possible to specify that this line only shows at the bottom of the page? or is removed completly? (while the prev 1 2 3 next, stays where it is at bottom and top), I tried commenting out the line:

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

    but it had no effect

    anyoone know how? thanks.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: move or remove "displaying 91 to 100 products (of 101)"

    This turns off the Display X to XX (of XX products)

    PHP Code:
    <div id="productsListingTopNumber" class="navSplitPagesResult back"><?php //echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></div>
    You could comment that out on the top one and leave it uncommented on the bottom ...

    NOTE: be sure to use your templates and overrides ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Sep 2006
    Location
    West of Ireland
    Posts
    174
    Plugin Contributions
    0

    Default Re: move or remove "displaying 91 to 100 products (of 101)"

    Thanks again Linda, That worked fine.

    just in case anyone is wondering:

    I had to alter several files:

    MY_TEMPLATE/templates/tpl_featured_products_default.php
    MY_TEMPLATE/templates/tpl_modules_product_listing.php
    MY_TEMPLATE/templates/tpl_products_all_default.php
    MY_TEMPLATE/templates/tpl_products_new_default.php

    Commenting out the same line (above) in each

    As I have text at the top of each listing + one or two filter options, I thought that removing this line from the top would help to create a less cluttered look. TA

  4. #4
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,237
    Plugin Contributions
    20

    Default Re: move or remove "displaying 91 to 100 products (of 101)"

    Or you could use css to hide #productListingTopNumber or #productListingBottomNumber as required (and the variants for All, Featured etc) e.g.

    Code:
    #productListingTopNumber {display:none;}
    Only one line of code to add/edit in one file.
    Development Manager @ JSWeb Ltd
    Over 15 years with Zencart

  5. #5
    Join Date
    Aug 2005
    Posts
    53
    Plugin Contributions
    0

    Default Re: move or remove "displaying 91 to 100 products (of 101)"

    Quote Originally Posted by Ryk View Post
    Or you could use css to hide #productListingTopNumber or #productListingBottomNumber as required (and the variants for All, Featured etc) e.g.

    Code:
    #productListingTopNumber {display:none;}
    Only one line of code to add/edit in one file.
    Awesome fix

    However there is a typo in the class name. In my installation 1.3.7 it appears as

    #productsListingTopNumber

    Just in case someone tries this and it doesn't work the css line is:

    Code:
    #productsListingTopNumber {display:none;}
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Sincerely,
    Tina
    dharma internet

  6. #6
    Join Date
    Jun 2005
    Location
    Massachusetts
    Posts
    156
    Plugin Contributions
    0

    Default Re: move or remove "displaying 91 to 100 products (of 101)"

    #productsListingTopNumber {display:none;}

    Looks like the right remedy for my problem but I can't find #productsListingTopNumber in any css sheet (classic, template_default and my CUSTOM sheet). Should I just add this code to my custom css sheet?

  7. #7
    Join Date
    Mar 2008
    Posts
    49
    Plugin Contributions
    0

    Default Re: move or remove "displaying 91 to 100 products (of 101)"

    I am have the opposite problem. This is not displaying in my site. Any reason why this would be happening.

    The "displaying 91 to 100 products (of 101)" is not showing

    Please help

  8. #8
    Join Date
    Mar 2008
    Posts
    49
    Plugin Contributions
    0

    Default Re: move or remove "displaying 91 to 100 products (of 101)"

    OK, I figured it out. For some reason there was a line in the includes/classes/split_page_results file that was commented out. On mine it was line 76.

    // $this->number_of_pages = ceil($this->number_of_rows / $this->number_of_rows_per_page);

    I uncommented (removed the // at the beginning of the file) and ftp'd it to the server.

    All Fixed

  9. #9
    Join Date
    Oct 2008
    Location
    Denver, USA
    Posts
    1
    Plugin Contributions
    0

    css problem Re: move or remove "displaying 91 to 100 products (of 101)"

    To answer the question from DocRocks, you just paste the code

    #productsListingTopNumber {display:none;}
    #productsListingBottomNumber {display:none;}

    to the end of this page:

    ZENCART/includes/templates/CUSTOM/css/stylesheet.css

  10. #10
    Join Date
    Oct 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: move or remove "displaying 91 to 100 products (of 101)"

    I'm using zencart 1.38 and the CSS class file that I used was

    .navNextPrevCounter {

    adding {display:none}; disabled the "products X of X" text in stylesheet.css

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 How do I move "New Products ..." & "All Products ..." to top of category box?
    By doooomed in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 4 Mar 2013, 06:37 PM
  2. Replies: 4
    Last Post: 16 Oct 2011, 12:58 AM
  3. How to remove ellipses ("...") after "All Products" and "New Products" on home page?
    By jthurman in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 May 2010, 03:30 PM
  4. Remove "Displaying # of Products"
    By RilKen27 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 12 Mar 2009, 04:10 PM
  5. Eliminate "displaying 91 to 100 products (of 101)"
    By DocRocks in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 28 Jan 2008, 07:17 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR