Negative Stock
nelslynn - January 3, 2009 - 01:46
| Project: | Ubercart Out of stock Notification |
| Version: | 5.x-1.3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
The out of stock notification does not seem to work when there is negative inventory. A -1 inventory should function the same as a 0 inventory.

#1
Should be fixed in 1.2, please try it and let me know
#2
Still not working.
#3
I should have tested before commiting, I thought the fix was trivial, anyway, it should be fixed in 1.3, please let me know.
#4
Still not working. I had tried what you tried, and couldn't get it to work. I'm wondering if it's a MySQL issue.
if ( $row->stock <= 0 ) { // Not working.
#5
This time I did try it and it seemed to work. Do you have the stock information as active? It needs to be active for this module to work. This in the stock configuration for the product. Does it have attributes with different SkUs? What's the negative value? I am gonna need more info because I tried it and it's working.
#6
Yes, stock information is active. Yes, I have attributes with different SKUs (size and color). The negative value is -1.
It works great with stock as 0, but not when stock is -1.
Thanks for your efforts.
#7
It's working with Attributes too as well on my side. Have you downloaded the latest version (1.3)? Also, clean your browser cache just in case an old .js is being cached,
#8
Cleared cache, and using version 1.3, but still not working for me. It must be another module interfering.
#9
Can you try it out with a plain drupal installation, ubercart and this module and see if you can reproduce the same behaviour. If you can, please tell me the steps you do to reproduce it.
#10
I had no problem with stock in earlier version but with 1.3 stock is showing negative.
I'm facing the same problem. Some of the stock shows negative value, in my case it is even -2,-3,-4.
Has this been fixed?
#11
The fact that the stock shows negative is not the issue. When someone purchases more goods than what is indicated as stock, a negative value should show.
Can you tell me this.... When a SKU shows a negative value, are you able to put this item in your shopping cart? This is the issue this thread is about.
Honoii: Sometime in the next few weeks, I will try a new install of Ubercart with no other modules installed and let you know what I come up with. What version of MySQL are you using? I'm using: Version 5.0.41
#12
Automatically closed -- issue fixed for 2 weeks with no activity.