Closed (fixed)
Project:
Ubercart
Version:
6.x-2.0-beta6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 May 2009 at 10:38 UTC
Updated:
21 Oct 2009 at 21:34 UTC
Jump to comment: Most recent file
Comments
Comment #1
cha0s commentedHere, I tested this and it works. I also rewrote some of the way uc_stock works, so that in the case of an admin changing the stock here, threshold stuff will still work correctly. Test it and report back please. Thanks =)
Comment #2
cha0s commentedComment #3
longwaveAny chance of adding a hook in uc_stock_adjust that passes the SKU, the old stock level and the adjustment? This would make my Stock Notify module simpler and more reliable, the current (D5) version has to hook into the stock edit form to detect when items come back into stock, and this still doesn't work if the stock levels are updated using another method.
Comment #4
rszrama commentedComment #5
rszrama commentedTagging.
Comment #6
cha0s commentedComment #7
Island Usurper commentedI found that changing a product's quantity on an order didn't affect the stock level either, so I added that and a new hook_uc_stock_adjusted() to the patch.
I will say I don't really like all of the if (module_exists()) in uc_order, but at this point it's not worth fixing. Maybe we can redesign it some for a later 2.x release.
Committed.
Comment #9
jasonabc commented@ Island Usurper - a big bug IMHO has now been fixed - many thanks!! Quick question - does this also update attribute based stock levels?