Log in
Model

IsCorrectQtyCondition

Magento\InventorySales\Model\IsProductSalableForRequestedQtyCondition\IsCorrectQtyCondition

What it does

This class validates whether a requested product quantity meets all configured quantity rules before a product can be added to cart.

Developers would use this to ensure customers can only purchase products in valid quantities, respecting minimum/maximum quantities, quantity increments, and decimal restrictions set in stock configuration.

Public Methods

  • execute()