Log in
Model

BackOrderCondition

Magento\InventorySales\Model\IsProductSalableForRequestedQtyCondition\BackOrderCondition

What it does

This class checks if a product can be sold in the requested quantity when backorders are configured.

It validates whether backorders are enabled for a specific product and stock, returning salability results with appropriate error messages if backorders are disabled.

Developers use this during checkout or cart operations to determine if a product can be added despite insufficient stock.

Public Methods

  • execute()