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