Problem with main sku stock display
| Project: | Ubercart Out of stock Notification |
| Version: | 5.x-1.0-beta5 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
The product variation (color in my case) attached to the parent sku shows up as in-stock even when the stock is set to zero. The child sku's work fine when selected.
This happens regardless if the parent attribute is set as the default.
Also, when the attribute is set to 'required', the product shows up as out of stock when the parent attribute is out of stock, even when child attributes are in-stock. This happens on the initial product view where the select box reads "please select."
Here is a link to a sample: http://ol.kolke.org/prod/cargo_lipstick_plantlove_botanical_lipstick. In the sample, the parent sku is out of stock, but some of the child sku's are in stock. The color attribute is set to 'required'. The color 'cece' is the parent attribute and is actually out of stock, which you can see when you try to add it to the cart.
Any ideas?
Thanks.

#1
I am looking at this right now. I think I have fixed it, that's an usability case that I haven't think of, which is when a combination of attributes shares the same SKU as the main product. I'll release soon a new version for you to try it out.
Also, about the required attribute when you get the 'Please select' thing is something I am also fixing. It doesn't make sense that a query should be sent when that's the case. At first I thought that you could buy a product with no attributes at all falling back to the normal SKU, but that's not the case as those attributes are REQUIRED, and if they are not, they are default to a value, so, I am changing that bit as well, in a way that only when the whole set of attributes is selected the module will query the server to check for the stock.
Thanks for the feedback.
#2
Beta6 released, please try it out and if possible get back to me with any feedback, thanks.
a.=
#3
Wow, that was fast. :)
It's working great. I've only tested it briefly. I'll try it out for a few days and let you know if there are any glitches. Thanks!
Cheers.
#4
Closing the issue so far, let me know if you find any problems.
#5
Automatically closed -- issue fixed for two weeks with no activity.