Thread: Stock by Weight

Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2006
    Location
    Sydney, Australia
    Posts
    112
    Plugin Contributions
    0

    Stock by Weight

    I did a search for Weight and Stock and got some threads but not quite what I was looking for.

    My store is selling tea, the leaf variety not bags at the moment. We will be offering teas in packed quantities of 100g and 200g only so I have used the attributes to allow this.

    However our stock is not held as say 5x100g packs and 5*200g packs but more as 1500g of Afternoon Tea.

    I am not sure if it is currently possible to set the stock up the way it would be most helpful. If someone buys a 200g pack of tea I want a stock figure of 1500g to reduce to 1300g etc.

    Anyone out there doing similar?

    ALFO
    www.alifefullof.com.au
    alfo

    www.alfo.com.au
    online ordering for catering, tea parties, take away food and retail from alfo cafe
    www.alifefullof.com.au
    tea party essentials: leaf tea, coffee beans, oils, chocolate and more

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Stock by Weight

    Is this stocked in packs or in bulk?

    Not how you purchase specifically but how you intend on stocking it in your store.
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Apr 2006
    Location
    Sydney, Australia
    Posts
    112
    Plugin Contributions
    0

    Idea or Suggestion Re: Stock by Weight

    We stock it in bulk i.e. Stock = 2000g of Earl Grey and we can sell as 20 x 100g packs or 10 x200g packs depending.
    alfo

    www.alfo.com.au
    online ordering for catering, tea parties, take away food and retail from alfo cafe
    www.alifefullof.com.au
    tea party essentials: leaf tea, coffee beans, oils, chocolate and more

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Stock by Weight

    set the product up as 1g and priced by attributes

    create the attribute name, like package or another title you prefer and create attribute values linked to it(100g & 200g) as either radio buttons or as a drop down & set the minium at 100g. Check other settings and set the pricing attributes to correctly calc the price.
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Jun 2006
    Posts
    5
    Plugin Contributions
    0

    Default Re: Stock by Weight

    Hi Kobra
    I have the same problem.
    I have setup the store as suggested using and everything works fine, except that when the customer checks out only 1 unit of stock is deducted. Is it possible to get the cart to subtract 50 units if the pack size they select is 50

    http://www.safe-plates.com/cart/inde...products_id=43

    Thanks

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Stock by Weight

    I was thinking about this last night in regard to a similar thread, and worked out an outline for coding a solution. I don't know enough PHP to code it, but an approach like this should work. It depends on the fact that the customer shopping cart functionality has to be able to record selected options in the db in order to keep a cart from session to session.

    The new improved hands-off-the-core-code way (simplified case of a single-unit or a multiple-unit option):
    Set up an Observer or two to watch for an add to cart or remove from cart event, and pass product/option id's and qty change by value and stock quantity by reference.
    If option = multiple, adjust stock quantity by the difference between single & multiple, times qty purchased; if option = single, do nothing; then return to normal program flow and let the single add/remove be handled.
    This should give an accurate stock count in whatever units you want.

    The common way:
    Make an override copy of the relevant shopping_cart.php file(s) and edit.
    When an add or remove occurs, test for multiple-unit option and adjust stock quantity by the difference between single & multiple, times qty purchased; if option = single, do nothing but continue with normal program flow and let the single add/remove be handled.

    Obviously this is grossly simplified and would need many details not mentioned.
    If someone is willing to turn this into usable code, I think quite a few people would benefit.

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Stock by Weight

    ryderd,

    If you have set the stocking uinit as 1g and sell a minium as say 50 and have this set correctly it will deduct 50 units of 1gm. As you have stated it deducts only one unit when purchased you must have established some other relationship.

    for this to work you must stock in bulk and why I asked orig poster how it was stocked. So that in your case the sccrews would be entered as a single unit @ say 0.03 per item then 25 would be 0.75, 50=1.50, 100=3.00, 200=6.00 and these increments would not be entered by you but calculated by Zen.

    Then to alter the volume prices you would use either the price factor/offset or the discount to tailor the final price.

    An alternative would be to use the qty discount function.
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. Model Number-Weight-Stock
    By Squeakywheels in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 24 Mar 2009, 07:22 PM
  2. weight/stock problems
    By ollieoll2k8 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Oct 2008, 11:36 PM
  3. Weight and Stock
    By Crazy in forum General Questions
    Replies: 1
    Last Post: 7 Jun 2007, 05:43 PM
  4. Adding Stock Levels, Weight & Manufacturer
    By timmyb in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 15 Nov 2006, 09:33 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