Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2010
    Location
    Vermont, USA
    Posts
    21
    Plugin Contributions
    0

    Default How to automatically turn off sold out categories

    We have a site that liquidates products for others. So, our inventory changes daily and items sell out all the time. Products automatically turn off when sold out, but how would I go about setting up a procedure (chron, php, mysql) to turn off sold out categories?

  2. #2
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: How to automatically turn off sold out categories

    Quote Originally Posted by joew36 View Post
    We have a site that liquidates products for others. So, our inventory changes daily and items sell out all the time. Products automatically turn off when sold out, but how would I go about setting up a procedure (chron, php, mysql) to turn off sold out categories?
    Well, I just realized that perhaps this may/may not work for you (ZC 1.3.9) but the following post showed how to do it for a ZC 1.5.4 site. It may still work for 1.3.9. The thread is full of various attempts to obtain the desired goal, but at least it's something.

    https://www.zen-cart.com/showthread....47#post1265047
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

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

    Default Re: How to automatically turn off sold out categories

    Quote Originally Posted by mc12345678 View Post
    Well, I just realized that perhaps this may/may not work for you (ZC 1.3.9) but the following post showed how to do it for a ZC 1.5.4 site. It may still work for 1.3.9. The thread is full of various attempts to obtain the desired goal, but at least it's something.

    https://www.zen-cart.com/showthread....47#post1265047

    Don't think it will work since in our case the function

    zen_count_products_in_category()

    is looking for inactive products but not for products which are sold out (stock = 0) but still active.So IMHO one would first need to set a sold out product to inactive.

  4. #4
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: How to automatically turn off sold out categories

    Quote Originally Posted by joew36 View Post
    We have a site that liquidates products for others. So, our inventory changes daily and items sell out all the time. Products automatically turn off when sold out, but how would I go about setting up a procedure (chron, php, mysql) to turn off sold out categories?
    Quote Originally Posted by frank18 View Post
    Don't think it will work since in our case the function

    zen_count_products_in_category()

    is looking for inactive products but not for products which are sold out (stock = 0) but still active.So IMHO one would first need to set a sold out product to inactive.
    Bolded above indicates that the products are turned off/inactive, therefore meetiing the rewuirement that is humbly suggested. Unless this additional post is related to a different issue/situation than posted by the OP.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Feb 2010
    Location
    Vermont, USA
    Posts
    21
    Plugin Contributions
    0

    Default Re: How to automatically turn off sold out categories

    Thanks, I did not see that when I searched for an answer. I'm actually off for a couple days but will check this out next week. Thanks.

 

 

Similar Threads

  1. v155 Sold-Out products to bottom of the page automatically
    By pricediscrimination in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 26 Jun 2016, 11:06 PM
  2. Replies: 7
    Last Post: 28 Mar 2011, 04:08 AM
  3. Replies: 1
    Last Post: 2 Jun 2008, 05:16 PM
  4. cant turn off sold out
    By maxus in forum General Questions
    Replies: 4
    Last Post: 22 Aug 2006, 04:10 PM
  5. Specials Turn Off Automatically
    By repairman in forum Setting Up Specials and SaleMaker
    Replies: 5
    Last Post: 8 Aug 2006, 12:54 AM

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