Log in
Model

IsSalableQtyAvailableForDisplaying

Magento\InventoryCatalogFrontendUi\Model\IsSalableQtyAvailableForDisplaying

What it does

This class determines whether the salable quantity of a product should be displayed to customers on the storefront.

It checks if the product's available quantity is low enough to warrant showing a 'only X left' message, based on backorder settings and stock threshold configurations.

Developers use this when customizing product availability displays or implementing low-stock notifications.

Public Methods

  • execute()