Closed (fixed)
Project:
eC Live Subproducts
Version:
5.x-2.09
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
4 May 2007 at 00:52 UTC
Updated:
5 Jul 2007 at 06:45 UTC
With Inventory Control enabled for subproducts, out of stock subproducts are allowed to be added to the cart even if the stock level is zero.
Attached patch resolves the issue for me.
| Comment | File | Size | Author |
|---|---|---|---|
| subproducts.module-5.x-3.x-dev-checkstock.patch | 1.09 KB | djflux |
Comments
Comment #1
TheRevolution.US commentedI added this patch to my 4.7 version. Seems to work so far but someone should verify that there's no need for any changes from the 5.x version
Comment #2
djflux commentedAlso check out the patch at this issue: http://drupal.org/node/130980
Both apply cleanly to the 2007-05-11 tarball of 5.x-3.x-dev and validate item inventory (stock) before adding the item to the cart.
Comment #3
TheRevolution.US commentedThis does keep products that are already sold out from being added to the cart but there are three loopholes that will still add more items to cart than there are items in inventory. For these examples assume there is one item in inventory and you have already added it to your cart.
One way to add an extra item is by simply clicking the "add to cart" button again.
The second way is by clicking the "add" link in the "Products in cart" area which appears after adding the initial item.
The third is by updating the "quantity" field on the cart page.
Each of these allow for someone to accidentally add more items than are in inventory, therefore making this patch barely better than unpatched. This has been outstanding for a long time and I would love to see this fixed as it makes the entire ecommerce package unusable to people selling things in limited quantities, such as myself.
Thanks, Eric
Comment #4
djflux commentedEric,
Check out this comment:
http://drupal.org/node/130980#comment-256792
Basically not decrementing inventory after adding to cart (I believe) was a design decision. There are two schools of thought. Check out the comment above for more details
Comment #5
brmassa commentedGuys,
EC Live Subproducts (an advanced subproducts module) deals with this problem already. I suggest to use it instead the original subproducts. It is going to be merged to original subproducts on the next ecommerce version, v4. So you will have full support.
regards,
massa
Comment #6
brmassa commentedComment #7
Thomas Sewell commentedSee also http://drupal.org/node/119230#comment-711738 for a combined patch that includes fixing the update cart button.