-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Which component is this issue related to?
Umbraco Commerce (Core)
Which Umbraco Commerce version are you using? (Please write the exact version, example: 10.1.0)
15.3.11
Bug summary
When using the backoffice, a price of 0 is considered unset and prevents selecting a product from the search result list.
When using the storefront API a price of 0 is considered a valid price and allows the Add to Cart call to succeed.
Specifics
Just to explain our usecase, we have a subset of products that don't use the umbraco commerce price field as their pricing changes by the second; for these we set the price to 0 get around the unset price validation (although ideally we'd be able to leave the price as null). The correct price for these products is determined by an API call from cart & orderline notification handlers which works fine and allows us to correctly price the order line.
Steps to reproduce
Set a products currency price to 0 and attempt to add this product to a cart using the storefront API and again using the backoffice view of the cart (where the cart currency matches the one with the price of 0).
Expected result / actual result
The expected result in both cases would be the product can be added to the cart. However, from the back office this is not possible as the search result listing of the products sees the price of 0 as unset so wont allow it to be selected. The storefront API sees a non-null price as being valid so the add to cart call succeeds.
Dependencies
No response
This item has been added to our backlog AB#55964