We have many template files (based on the core) that use:
For determining whether or not to show the add to cart buttons. However, we've found if we have 10 of an item and a customer orders 10 (a stock reservation is made making the salable quantity 0) but isSaleable still returns true.
Attempting to add an item to the cart causes an error as this uses the new
What is a reliable way (if using MSI) to determine stock levels in phtml? is it not safe to isSaleable anymore or is this an oversight?