You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's specifically only broken when the product has attributes but none are restricted to predefined values.
To Reproduce
Steps to reproduce the behavior:
Create a new content type.
Add Product part, Price part and Inventory part.
Add a text product attribute field (name doesn't matter).
Create a content item, make sure to set the inventory count to a positive number.
View the content item.
Observe that:
✔️ The inventory number is as expected.
🛑 The Quantity field defaults to 0 instead of 1.
Set the Quantity to 1 and click Checkout.
Observe that:
🛑 An error notification saying "There are not enough X left in stock." is displayed.
🛑 The product is not actually added to the cart.
Expected behavior
It looks like the inventory shopping cart event can't resolve the entry in the inventory dictionary so it defaults to assuming the inventory is 0. This should not be the case.
Screenshots
If applicable, add screenshots to help explain your problem.
github-actionsbot
changed the title
Inventory part with non-restricted product attributes can't be added to the cart
Inventory part with non-restricted product attributes can't be added to the cart (OCC-229)
Apr 9, 2024
Describe the bug
It's specifically only broken when the product has attributes but none are restricted to predefined values.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It looks like the inventory shopping cart event can't resolve the entry in the inventory dictionary so it defaults to assuming the inventory is 0. This should not be the case.
Screenshots
If applicable, add screenshots to help explain your problem.
Jira issue
The text was updated successfully, but these errors were encountered: