Contrib type:
ModuleStatus:
Uploaded for testingSponsored by:
Sundays EnergyCompatibility:
Ubercart Dev CodeLatest version:
1This module allows uc_stock to act as an inventory manager for Inventory API. This allows the prevention of people to add a product to the cart when it is out of stock.
| Attachment | Size |
|---|---|
| uc_stockstub.zip | 2.44 KB |


Works great!
Works great!
I'm running RC4.
Which version of uc_inventory_api are you using?
I used 1.5 by Cpill.
I think TR may have a newer version. See post: http://www.ubercart.org/comment/11193/Re-Ryan-said-I-know-CpILL
Cheers.
Using this module with multiple attributes.
This is an excellent module. However, it doesn't work as 'smoothly' as it could when using a product that has multiple attributes.
When you create a product, a "Main SKU" is created for the product.
When adding attributes, you can created separate "Attribute SKU" which have their stock levels tracked separately from the "Main SKU".
However, the "Add to Cart" button is only replaced with a "out of Stock" badge when the Main SKU reaches zero stock.
This creates a problem, as the "Attribute SKUs" may be in stock even though the "Main SKU" is not in stock (as a result, the customer is unable to order the "attribute SKUs").
Although you can disable stocking checking of the "Main SKU" to prevent this, the "out of stock" badge will no longer appear when the "attribute SKUs" reach zero stock. In such an instance, the module DOES prevent purchase of the out of stock attributes. However, the customer only sees the out of stock message when they try to add an attribute to cart.
This creates a slight usability issue, as the customer may end up trying to add every attribute to the cart before realizing that none of them are in stock.
Is there anyway to overcome this? I guess the best way would be if the "Main SKU" stock level was automatically adjusted to reflect the total number of "Attribute SKUs" in stock. Is there anyway of doing this?
Sweet Webmasterkai,if this
Sweet Webmasterkai,
if this takes off where the Inventory API stopped, then poeple here are going to be very happy.
I only deal with 1 main product of each, so am not to worried about the last point, but yes, that is an issue. All attribute stoick items should be included.
Will check it out.
Thanks for your contrib!
Re: Inventory API Manager for uc_stock
Wow, brilliant idea! I made the API but didn't think of making a wrapper Manager for the new uc_stock module, but i guess that was the point of the API separated from the actually stock tracking logic. Still I'm amazed that the API is working OK with all the changes that happened to UC up to version 1.0. Good work old man!