Results 1 to 10 of 12

Hybrid View

  1. #1
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Categories with Zero Products

    Since you're already using Easy Populate, and presumably create and maintain your base data in Excel or a similar program, you could automate the process somewhat by using Visual Basic within Excel. But of course, this would mean you'd always be deleting and creating categories as needed rather than just turning them off and on, and I'm not sure EP can delete categories during uploads -- create yes, but maybe not delete.

    Rob

  2. #2
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Categories with Zero Products

    I believe the question being asked is different from the original question. Zero products is a different situation than products with zero stock. The category still has products in that case. I don't think there's a way to automate that unless it might involve a very complex SQL statement... maybe..
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  3. #3
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Categories with Zero Products

    Good point Mary Ellen. I missed that distinction entirely.

    But they might want to look into this coincidental thread.

    Rob
    Last edited by rstevenson; 19 Feb 2009 at 01:08 AM. Reason: added other thread link

  4. #4
    Join Date
    Jun 2006
    Posts
    123
    Plugin Contributions
    0

    Default Re: Categories with Zero Products

    Quote Originally Posted by afo View Post
    I believe the question being asked is different from the original question. Zero products is a different situation than products with zero stock. The category still has products in that case. I don't think there's a way to automate that unless it might involve a very complex SQL statement... maybe..
    I'm thinking something along the lines of the product count in the category sidebox (when zero-stock products are hidden).... that one makes no distinction between active products and total products. For any category with products, the customer would see "0" as long as they're all zero-stock and/or with a status of 0. So, since there's already a routine in Zen Cart that works like that, maybe I could use the same principle in letting it set the category's status accordingly...

  5. #5
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Categories with Zero Products

    Quote Originally Posted by bodyjewelrystores View Post
    I'm thinking something along the lines of the product count in the category sidebox (when zero-stock products are hidden).... that one makes no distinction between active products and total products. For any category with products, the customer would see "0" as long as they're all zero-stock and/or with a status of 0. So, since there's already a routine in Zen Cart that works like that, maybe I could use the same principle in letting it set the category's status accordingly...
    There might be. When I read this thread earlier today (long before I posted), I poked around in the admin to see if there was a setting. I doubt the existing setting puts that fine a point on it, but I suppose someone far more experienced with the behind the scenes workings of ZC could write a mod to do this. Could be something for the devs to consider for future releases.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  6. #6
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Categories with Zero Products

    It occurred to me that a better term for this situation would be a category with inactive products instead of zero products. It better describes the current topic of the thread.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  7. #7
    Join Date
    Jun 2006
    Posts
    123
    Plugin Contributions
    0

    Default Re: Categories with Zero Products

    Quote Originally Posted by rstevenson View Post
    Since you're already using Easy Populate, and presumably create and maintain your base data in Excel or a similar program, you could automate the process somewhat by using Visual Basic within Excel. But of course, this would mean you'd always be deleting and creating categories as needed rather than just turning them off and on, and I'm not sure EP can delete categories during uploads -- create yes, but maybe not delete.

    Rob
    Well, I'm not really maintaining the whole thing with excel/easy populate - I just use it when adding new products and changing stock status. There are a lot of things EP doesn't do, or doesn't do well (most annoyingly - sort orders, and item attributes, but also category management as you noted above), and sometimes I can complete the picture with some SQL queries, but for this I'd need something more dynamic.

    However, your post got me thinking.... maybe there's a way to add a little routine to Easy Populate's php scripts, which would run after an EP file has been uploaded, loop through all the categories, count the active items, and change the category status accordingly. Could be a nasty bit of code-crunching (for me) but might work....

 

 

Similar Threads

  1. products with attributes set to zero
    By skorbay in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 19 Jan 2011, 06:29 AM
  2. Products with zero quantity showing as Sold Out
    By miguel991 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 22 Dec 2010, 09:36 PM
  3. Replies: 5
    Last Post: 19 Nov 2006, 05:40 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