Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jan 2013
    Posts
    1
    Plugin Contributions
    0

    Default Can I reduce inventory based on weight instead of units?

    Our system currently reduces inventory levels in single increments. For instance, if we have 25000 grams and a customer purchases 5500 grams, it should reduce to 19500. Instead it will reduce to 24999 - one increment. So we have no accurate way of knowing our stock levels.

    I believe this is a result of customers purchasing one unit (e.g. 1 kg bag) but I am unsure how to rectify this in terms of inventory levels. An example of the type of product is here on the site http://craftbrewing.co.nz/malts-grai...lts/amber-malt

    Thanks.

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Can I reduce inventory based on weight instead of units?

    I haven't used it, but there is an option to specify a weight for each attribute. That might let you track total grams sold.

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Can I reduce inventory based on weight instead of units?

    So what you are saying is ...

    Your Product Quantity is 25000 ...

    Then your Attributes are:
    10gr
    50gr
    100gr
    1kg

    So when I buy 3 10 gr ... you want the Product Quantity to be reduced to:
    25000 - (3 * 10) = 24970

    correct?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Oct 2011
    Location
    Toronto Canada
    Posts
    67
    Plugin Contributions
    0

    Default Re: Can I reduce inventory based on weight instead of units?

    Quote Originally Posted by Ajeh View Post
    So what you are saying is ...

    Your Product Quantity is 25000 ...

    Then your Attributes are:
    10gr
    50gr
    100gr
    1kg

    So when I buy 3 10 gr ... you want the Product Quantity to be reduced to:
    25000 - (3 * 10) = 24970

    correct?
    Hi Ajeh,
    Yes that is correct, I am looking to do that exact same thing.
    Lead•Empower•Motivate
    Catherine S.
    Go2Guru

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Can I reduce inventory based on weight instead of units?

    Is this true on ALL Products or just SOME Products?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Oct 2011
    Location
    Toronto Canada
    Posts
    67
    Plugin Contributions
    0

    Default Re: Can I reduce inventory based on weight instead of units?

    Quote Originally Posted by Ajeh View Post
    Is this true on ALL Products or just SOME Products?
    Thanks for the quick reply. It is just for SOME products. I was wondering if we should maybe be looking at stock by attributes? Here is a normal scenario that may help to explain how we would like it to work.

    Product A = Hops= 1kg-not priced by attributes, just one standard item and the price is $21.00 (have 50 in stock), 1 sells, shows 49 in stock

    Product B = Grains = priced by attributes, actual product does not have a price in, weight is set as 0.1 - the attribute prices are:
    Bag Size
    10grams = 10c
    50grams = 31c
    100grams = 63c
    1kg = $6.32

    This is a project I have taken over on, so some of the things may be setup incorrectly? I am thinking maybe the attributes need to be set by weight?

    For shipping we are using Ceon Advanced Shipper - based on postal code and price is based on weight.

    Thanks
    Lead•Empower•Motivate
    Catherine S.
    Go2Guru

  7. #7
    Join Date
    Oct 2011
    Location
    Toronto Canada
    Posts
    67
    Plugin Contributions
    0

    Default Re: Can I reduce inventory based on weight instead of units?

    Quote Originally Posted by Ajeh View Post
    Is this true on ALL Products or just SOME Products?
    PS: More than happy to send you a PM with back end login info as it is a test site that I am working on (needs to be correct first) to replace the current site that has too many other errors.
    Lead•Empower•Motivate
    Catherine S.
    Go2Guru

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Can I reduce inventory based on weight instead of units?

    I do not believe Stock by Attributes would help you on this as the stock numbers are based on 1 quantity means reduce by 1 and you want some reduced by 1 and some reduced by quantity * a factor ...

    You would need to customize the stock deduction in the orders class for this ...

    One thought might be to add a new field to products table to indicate what its quantity factor is and utilize that for reducing stock ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  9. #9
    Join Date
    Feb 2011
    Posts
    57
    Plugin Contributions
    0

    Default Re: Can I reduce inventory based on weight instead of units?

    I know this is an old thread, but I felt it better to bump it than start my own. I am in a similar situation, and am looking to automate stock and inventory, however the website we sell our products on has over 600 products, every single one with different weights. Has there been a formal solution to this problem as of yet? I can do some mild code editing myself, but I definitely do not know how to do this as it stands. I was considering utilizing something like easy populate, stock by attributes, or some free automation export service to try and update an excel document automatically when orders come in, with a value multiplier based on what attribute is selected, but if there is a way to do this natively with zen-cart, that would be ideal. Also hoping to keep everything cross referenced with eBay and possible other venues, but right now the main priority is keeping inventory of products with multiple weight attributes.

  10. #10
    Join Date
    Jan 2007
    Posts
    1,484
    Plugin Contributions
    10

    Default Re: Can I reduce inventory based on weight instead of units?

    Can't you just set the stock level to the weight number and have them order in weight quantities? Example: you have 1000 pounds of product so there is 1000 units in stock. When they order, the quantity box is for how many pounds they want to order. It shouldn't matter if each product uses a different weight unit, you simply stock by that unit and the customers order the quantity of units needed.

    If you want to display what that weight unit is on each product listing by the quantity box or wherever, you would need to add a new column to the products table in the database, and some corresponding code in collect_info to create a text box to input the weight unit, as well as on the store side wherever you want it displayed. You should be able to look at a different field on collect_info and duplicate the code, and the same for the template files for the store side. Or you can simply add the weight unit to the title and/or description and no code is needed.

    Zen Cart and it's community are the best!!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Display - units amount purchased instead of units in stock
    By evok20 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 Aug 2011, 05:15 PM
  2. reduce inventory in external system after payment is confirmed by Paypal?
    By rovi1 in forum PayPal Express Checkout support
    Replies: 4
    Last Post: 19 Mar 2011, 10:16 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