So, I’m trying to override a class that is used to create a virtual type, which is used as a preference for another class (see the Core di.xml below). I have posted the excerpt from my di.xml as well. Everything compiles fine, but it never seems to pick up my overriding class. Since this is a preference for a class used as a type for a virtual type used as a preference for another class, I know I’m just missing something, but have never dealt with this complex an implementation. Any ideas would be appreciated.
My module di.xml
Core di.xml
-
- true
- MagentoInventorySalesModelIsProductSalableForRequestedQtyConditionIsCorrectQtyCondition
-
- true
- MagentoInventorySalesModelIsProductSalableForRequestedQtyConditionIsAnySourceItemInStockCondition
-
- 10
- MagentoInventorySalesModelIsProductSalableForRequestedQtyConditionBackOrderCondition
-
- 20
- MagentoInventorySalesModelIsProductSalableForRequestedQtyConditionManageStockCondition
-
- 30
- MagentoInventorySalesModelIsProductSalableForRequestedQtyConditionIsSalableWithReservationsCondition