An Adobe Commerce Expert is tasked with implementing a custom condition on salable quantity with reservations. The condition needs to be applicable only when added to cart.
To add a custom salable quantity condition for use only during the add-to-cart flow, developers must extend the IsProductSalableForRequestedQtyConditionChainOnAddToCart virtual type. This chain is designed specifically for cart validation, ensuring the new condition runs only at that stage.
A would override the core class completely, not scoped to add-to-cart.
B relates to stock validator chains, not salable quantity conditions.
C is correct: defining a virtual type extension ensures proper conditional logic for reservations during cart validation.
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit