Skip to content

magento2.4.3

Auto Added by WPeMatico

Replace error message using a custom plugin

I’d like to replace the error message in this magento core function. vendor/magento/module-inventory-sales/Model/IsProductSalableCondition/BackOrderNotifyCustomerCondition.php public function execute(string $sku, int $stockId, float $requestedQty): ProductSalableResultInterface { $stockItemConfiguration = $this->getStockItemConfiguration->execute($sku, $stockId); if ($stockItemConfiguration->isManageStock() && $stockItemConfiguration->getBackorders() === StockItemConfigurationInterface::BACKORDERS_YES_NOTIFY ) { $stockItemData = $this->getStockItemData->execute($sku, $stockId); if… Read More »Replace error message using a custom plugin

Magento2: Cannot instantiate interface MagentoInventoryApiApiGetSourceItemsBySkuInterface error in log file

I am using Magento2.4.3 and I am getting the below error in my error log: Cannot instantiate interface MagentoInventoryApiApiGetSourceItemsBySkuInterface#0 /var/www/magento/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject() #1 /var/www/magento/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): MagentoFrameworkObjectManagerFactoryCompiled->create() #2 /var/www/magento/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): MagentoFrameworkObjectManagerFactoryCompiled->get() #3 /var/www/magento/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): MagentoFrameworkObjectManagerFactoryCompiled->create() #4 /var/www/magento/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): MagentoFrameworkObjectManagerFactoryCompiled->get() #5 /var/www/magento/vendor/magento/framework/ObjectManager/ObjectManager.php(56): MagentoFrameworkObjectManagerFactoryCompiled->create() #6 /var/www/magento/vendor/magento/module-cron/Observer/ProcessCronQueueObserver.php(332): MagentoFrameworkObjectManagerObjectManager->create() #7… Read More »Magento2: Cannot instantiate interface MagentoInventoryApiApiGetSourceItemsBySkuInterface error in log file