Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    Jul 2015
    Location
    Virginia
    Posts
    57
    Plugin Contributions
    0

    Default Setting A Product to Not Track Inventory

    We need the ability to not track inventory on certain products, so that it never says out of stock.

    I know I can set it to do this for the entire store, but I only want this for certain products. Is there a way to do that?

    Thanks!

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: Setting A Product to Not Track Inventory

    Quote Originally Posted by Blenderite View Post
    We need the ability to not track inventory on certain products, so that it never says out of stock.

    I know I can set it to do this for the entire store, but I only want this for certain products. Is there a way to do that?

    Thanks!
    Yep, it's called custom programming!

    Note: Yours is not the first request to move Zen Cart's default stock management (i.e. Stock->Allow Checkout, Stock->Subtract Stock) down a notch so that the handling could be configured at the category- or product-level.

  3. #3
    Join Date
    Jul 2015
    Location
    Virginia
    Posts
    57
    Plugin Contributions
    0

    Default Re: Setting A Product to Not Track Inventory

    I am surprised that there is not an add-on for this.

    Is there any direction that you could send me to help me 'fix' ZenCart? Or is this an adventure I should endeavour on my own?

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: Setting A Product to Not Track Inventory

    Me, too!

    The two store-side settings are housed in the database configuration elements named STOCK_ALLOW_CHECKOUT (values 'true' or 'false') and STOCK_LIMITED (values 'true' or 'false'). You can use your admin's Tools->Developers Tool Kit to see where those store-wide settings are used.

    The first setting (as its name implies) identifies whether or not to allow checkout with a quantity greater than that in stock. The second setting (where its name came from is anyone's guess) identifies whether or not the product's database-held quantity value is to be reduced by any quantity checked-out.

  5. #5
    Join Date
    Jul 2015
    Location
    Virginia
    Posts
    57
    Plugin Contributions
    0

    Default Re: Setting A Product to Not Track Inventory

    I wonder if STOCK_LIMITED or STOCK_ALLOW_CHECKOUT would be able to be added to the spreadsheet I have for EasyPopulate 4.0. Hmmmmmm.

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: Setting A Product to Not Track Inventory

    Before you head down the EP4 path, you'll need to think about how to update your database to allow product and/or category-specific override values for the two site-wide settings and then to update your products' configuration to display/update those settings.

  7. #7
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: Setting A Product to Not Track Inventory

    Quote Originally Posted by Blenderite View Post
    We need the ability to not track inventory on certain products, so that it never says out of stock.

    I know I can set it to do this for the entire store, but I only want this for certain products. Is there a way to do that?

    Thanks!
    Working on the KISS priciple...
    Why not just give these products a ridiculously high quantity of stock so that they never run out?

    If the question is then "I don't want to show this quantity to the public"

    The edit product_info.php something like
    if quantity > 100000 then display "something else" otherwise display quantity

  8. #8
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Setting A Product to Not Track Inventory

    Quote Originally Posted by gilby View Post
    Working on the KISS priciple...
    Why not just give these products a ridiculously high quantity of stock so that they never run out?

    If the question is then "I don't want to show this quantity to the public"

    The edit product_info.php something like
    if quantity > 100000 then display "something else" otherwise display quantity
    That is *exactly* what I did for my 'infinite quantity' products. This also has a side benefit of giving a quick indication of how many have been sold (As long as I remember what my starting count was).

    Cheers
    RodG

  9. #9
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Setting A Product to Not Track Inventory

    Yeah it can be tough to remember kind of all sides: that cutoff might be 1000, that started with 10,000 (without the comma) or 100,000, or even larger... When if ever did the quantitiy get reset, etc... :) but still better than trying toadd anadditional field to "track" for eachand every product... But that's considering an existing store and having to figure out which product had to be controlled which way.

    Have to remember (if using something that tracks attribute quantities) to also consider some form of cutoff quantity there as well when considering which "product" should show quantities and which should not...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v151 Keep track of attributes with inventory
    By Kevin205 in forum General Questions
    Replies: 5
    Last Post: 26 Aug 2013, 08:31 PM
  2. Inventory track by size
    By Colfax in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 12 Jan 2011, 09:56 PM
  3. Track inventory by attribute
    By djstern in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 15 Jun 2007, 06:21 AM
  4. Inventory question - how to track components of assembled products
    By rbobzin in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 4 Apr 2007, 05:09 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