Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2010
    Posts
    68
    Plugin Contributions
    0

    help question Removing "There are no products to list in this category" from cateogry page

    I want to hide or remove the "There are no products to list in this category" statement that automatically appears when there are no products available for a product category.

    I have a "Custom Order" category that will never have any products listed but will be used to display images of custom products, but didn't know how to hide the statement for just that one category.

    Here is a direct link to the page:
    http://tregreekboutique.com/zencart/...=index&cPath=8.

    Thanks!

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Removing "There are no products to list in this category" from cateogry page

    Open /includes/languages/english/YOUR_TEMPLATE/index.php

    and find There are no products to list in this category

    delete that string but make sure to leave the single quotes untouched

    so change this

    define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');

    to this

    define('TEXT_NO_PRODUCTS', '');
    Last edited by frank18; 14 Jun 2010 at 02:24 AM.

  3. #3
    Join Date
    Apr 2010
    Posts
    68
    Plugin Contributions
    0

    Default Re: Removing "There are no products to list in this category" from cateogry page

    I think that if I remove it from index.php it will remove the statement for any category that does not contain any products.

    I want to remove the statement from ONE particular category ONLY.



    Quote Originally Posted by frank18 View Post
    Open /includes/languages/english/YOUR_TEMPLATE/index.php

    and find There are no products to list in this category

    delete that string but make sure to leave the single quotes untouched

    so change this

    define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');

    to this

    define('TEXT_NO_PRODUCTS', '');

  4. #4
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Removing "There are no products to list in this category" from cateogry page

    Quote Originally Posted by techiegirl View Post
    I think that if I remove it from index.php it will remove the statement for any category that does not contain any products.
    That's correct

    I want to remove the statement from ONE particular category ONLY.
    Considering you only have one empty category to deal with that solution should work just fine.

    To me it makes no sense to have empty categories at all. If they are empty they can be disabled via admin until they are needed.

    It's like a B&M shop with empty departments - nothing to buy or to browse so why make them accessible to the public?

  5. #5
    Join Date
    Apr 2010
    Posts
    68
    Plugin Contributions
    0

    Default Re: Removing "There are no products to list in this category" from cateogry page

    Quote Originally Posted by frank18 View Post
    That's correct

    Considering you only have one empty category to deal with that solution should work just fine.

    To me it makes no sense to have empty categories at all. If they are empty they can be disabled via admin until they are needed.

    It's like a B&M shop with empty departments - nothing to buy or to browse so why make them accessible to the public?
    Thanks for the help. I guess I may have been overcomplicating what I was trying to accomplish.

    Removing it from the index.php file did the job.

 

 

Similar Threads

  1. v151 There are no products to list in this category. But there are!
    By Marcel Wiegers in forum Setting Up Categories, Products, Attributes
    Replies: 16
    Last Post: 22 Oct 2013, 06:29 PM
  2. Replies: 7
    Last Post: 6 Jan 2010, 06:19 PM
  3. Hide "There are no products to list in this category"
    By DocRocks in forum General Questions
    Replies: 5
    Last Post: 30 Apr 2008, 02:13 PM
  4. Category with no products dont display"There are no products to list in this category
    By atracksler in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 3 Apr 2008, 05:47 AM
  5. disable "There are no products to list in this category"
    By animike in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 22 Oct 2007, 09:12 PM

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