Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Join Date
    Aug 2006
    Posts
    110
    Plugin Contributions
    0

    Default Don't show category when it has no products

    Hi all.

    How can I do the above please? I don't want a category showing if there's nothing in it.

    Once again, I've tried to search for this answer but as usual the search throws up hundreds of threads

    p.s - I'm sure this was an option on oS Commerce.

    Cheers

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Don't show category when it has no products

    In the admin where the categories are displayed there is a green square/button and clicking this changes it to red and disables it.....Is this what you are seeking??
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Aug 2006
    Posts
    110
    Plugin Contributions
    0

    Default Re: Don't show category when it has no products

    Not really, I want it to be automatic.

    In other words, a bit of code that says:

    "Does this category have any products, if 'no', then don't display it"

    I'll do what you suggest as a workaround.

    Ta.

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Don't show category when it has no products

    "Does this category have any products, if 'no', then don't display it"
    Do you mean no products or no products with stock?
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Aug 2006
    Posts
    110
    Plugin Contributions
    0

    Default Re: Don't show category when it has no products

    Good question.

    I mean 'No Products'

    I don't mind the odd 'sold out' here and there :-)

  6. #6
    Join Date
    Aug 2005
    Location
    Cincinnati
    Posts
    334
    Plugin Contributions
    0

    Default Re: Don't show category when it has no products

    Admin/Configuration/Layout Settings: Categories with 0 Products Status = 0

    Quote Originally Posted by budfox View Post
    Good question.

    I mean 'No Products'

    I don't mind the odd 'sold out' here and there :-)

  7. #7
    Join Date
    Aug 2006
    Posts
    110
    Plugin Contributions
    0

    Default Re: Don't show category when it has no products

    Thanks, but that isn't it.

    That option puts a (0) after each category that has no products.

    I'm hoping to not see the category at all. The idea being that the store doesn't look so empty when we don't have much to sell.

  8. #8
    Join Date
    Aug 2005
    Location
    Cincinnati
    Posts
    334
    Plugin Contributions
    0

    Default Re: Don't show category when it has no products

    Wow -- you're right! All this time I thought that one disabled category display when the category had no products ...
    Quote Originally Posted by budfox View Post
    Thanks, but that isn't it.

    That option puts a (0) after each category that has no products.

    I'm hoping to not see the category at all. The idea being that the store doesn't look so empty when we don't have much to sell.

  9. #9
    Join Date
    Aug 2005
    Location
    Cincinnati
    Posts
    334
    Plugin Contributions
    0

    Default Re: Don't show category when it has no products

    Maybe there was never any call for such a control. I've always just disabled empty categories manually in Categories/Products by clicking the green status button so it turns red.

  10. #10
    Join Date
    Aug 2006
    Posts
    110
    Plugin Contributions
    0

    Default Re: Don't show category when it has no products

    Are we able to put in a request then, or perhaps someone PHP literate could write a mod in 10 seconds....

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Products don't show when "ALL PRODUCTS" link is clicked.
    By apriigem in forum General Questions
    Replies: 5
    Last Post: 27 Feb 2013, 11:44 PM
  2. Products don't show in category
    By bettysue in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 10 Jun 2011, 07:05 PM
  3. Expanded Category List - don't show products
    By airtime in forum Addon Sideboxes
    Replies: 10
    Last Post: 3 Mar 2011, 05:49 PM
  4. Products don't show by Category when filter by Manufacturer ?
    By Alex123 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 12 Jun 2008, 06:46 AM
  5. Split a category to subcategories when it has products
    By chancer in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 9 Apr 2008, 05:18 AM

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