Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2011
    Posts
    214
    Plugin Contributions
    0

    Default How to best handle quantity on hand and stock levels

    For a store that sells ammo I have set up quantities as attributes. They are sold in quantities of 50, 100, 250, 500 and 1000.

    I would like to have the stock levels be counted towards a main inventory count. For example if I have 100,000 rounds of 9mm I would like the sale of a box of 1000 to come off the total available and show that there are 99,000 left. Whats the best way to do this without using the SBA module?

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

    Default Re: How to best handle quantity on hand and stock levels

    Two ways that I can think of, sell the item with a unit factor applied as in 50 since that appears to be your lowest common factor.
    Another requiring some programming is to offer your attribute selection but somewhere in the process convert the attribute to quantity to be removed from your total stock.... This could happen in or as a result of the includes/classes/orders.php process when the stock is decremented. Could be done by an observer that is just waiting to remove the bullets from the group...

    Since this more of a quantity by grouping instead of quantity by association, I am thinking that yes SBA is not the path for this issue...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Jul 2011
    Posts
    214
    Plugin Contributions
    0

    Default Re: How to best handle quantity on hand and stock levels

    Quote Originally Posted by mc12345678 View Post
    Two ways that I can think of, sell the item with a unit factor applied as in 50 since that appears to be your lowest common factor.
    Another requiring some programming is to offer your attribute selection but somewhere in the process convert the attribute to quantity to be removed from your total stock.... This could happen in or as a result of the includes/classes/orders.php process when the stock is decremented. Could be done by an observer that is just waiting to remove the bullets from the group...

    Since this more of a quantity by grouping instead of quantity by association, I am thinking that yes SBA is not the path for this issue...
    How do you apply the unit factor? There is only one general product listed and I'm using attributes in a drop down for quantity.

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

    Default Re: How to best handle quantity on hand and stock levels

    Quote Originally Posted by In2Deep View Post
    How do you apply the unit factor? There is only one general product listed and I'm using attributes in a drop down for quantity.
    So, if using the unit factor then would do away with the attrbutes as they would well be confusing. If there are price differences for box sizes then could apply quantity discounts. The unit factor is located on the product info page when in the admn. There is also a minimum value which would just be wise to set at 50 as well.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Jul 2011
    Posts
    214
    Plugin Contributions
    0

    Default Re: How to best handle quantity on hand and stock levels

    So there isn't a solution?

  6. #6
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,542
    Plugin Contributions
    19

    Default Re: How to best handle quantity on hand and stock levels

    There's always a solution...

    Instead of using attributes, you can make some code changes and convert the quantity input field into a select menu (drop down) with your preset quantities. As mc12345678 already mentioned, you could adjust the price with qty discounts (in case 1000 pieces costs less than 5x200 pieces). You would also need to make sure to edit the qty input on shopping cart page, as well as any product listing pages (product_listing, products_new, specials etc).

    There is a caveat with this method - if for any reason I want to purchase 3 separate packages (one for me, one for my wife and one for my grandma) and I want 100+100+50, the shopping cart will NOT separate it and you'll get an order for a single package of 250... The only way I can think of to keep it separated is using attributes. And with attributes, you're stuck with using SBA... Although, I don't see why you don't want to use that plugin - it's pretty good and stable, easy to install and simple to maintain...

  7. #7
    Join Date
    Jul 2011
    Posts
    214
    Plugin Contributions
    0

    Default Re: How to best handle quantity on hand and stock levels

    Thank you for the help.

  8. #8
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: How to best handle quantity on hand and stock levels

    Quote Originally Posted by balihr View Post
    There's always a solution...
    ... And with attributes, you're stuck with using SBA...
    Agreed to the first, with yet-another caveat for the attributes-handling: Given that the "number of rounds" attribute is known, one could write a somewhat simple observer to check, upon order creation, whether such an attribute exists and to reduce the associated product's stock by the value specified in the attribute's value -- i.e. the attribute values for "Number of Rounds" are the (ahem) number of rounds: 50, 100, 200, etc.

 

 

Similar Threads

  1. stock levels and attributes
    By tokkie in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 30 Dec 2009, 08:11 PM
  2. Product options and stock levels
    By femky in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 27 Dec 2009, 08:58 PM
  3. How do I get rid of weight and quantity in stock?
    By tellam in forum General Questions
    Replies: 11
    Last Post: 9 Apr 2009, 06:53 PM
  4. Retail, Instutional and Wholesale Customers - how to handle best?
    By stephenv2 in forum Managing Customers and Orders
    Replies: 2
    Last Post: 30 Jan 2008, 06:31 AM
  5. Nochex stock levels and confirmation email
    By Tanzanite in forum Addon Payment Modules
    Replies: 19
    Last Post: 29 Jan 2007, 09:43 PM

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