New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SKU cannot be added to cart, quantity available null #1570
Comments
Well, i found the solution to this. There is a bug in InventoryServiceImpl, in retrieveQuantitiesAvailable(Collection skus, Map<String, Object> context) method. The method checks some stuff, but doesn't set the available quantity when there is one. The correct implementation of this method should be
` |
sorry, can you explain for me? |
We have successfully implemented a site based on 4.0.6 version of Broadleaf. Lately, we tried to upgrade to 4.0.14, but we face the problem that a SKU cannot be added to cart. In store we have some products and their additional skus produced on a product size option.
From a quick view of the matter, an InventoryUnavailableException is raised at service.workflow.CheckAvailabilityActivity.
Furthermore, in CheckAvailabilityActivity
If we switch back to 4.0.6 everything works as expected.
All categories have InventoryType as CheckAvailability. Also setting one particular product and it's SKUs to have CheckAvailability option has no effect.
In front store, calling sku.getQuantityAvailable returns the correct value.
Any clue for the matter???
PS The same error affects all versions>4.0.6
The text was updated successfully, but these errors were encountered: