Why preference not working in Magento 2 observer (Custom module)
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
0
etc/di.xml <preference for="CustomPriceruleObserverFrontendCatalogCatalogProductGetFinalPrice" type="LofRequestForQuoteObserverProductGetFinalPrice2" /> observer/ProductGetFinalPrice2.php <?php namespace LofRequestForQuoteObserver; use MagentoCustomerModelSession as CustomerModelSession; use MagentoCatalogRuleModelRuleFactory as RuleFactory; use CustomPriceruleHelperData; use PaarthMageDocumentModelDocFactory as DocFactory; class ProductGetFinalPrice2 implements MagentoFrameworkEventObserverInterface { protected $customerSession; protected $catalogRuleFactory;...