From 05ebbdfabd74f5e608a6d2a06c63284a5c9d4077 Mon Sep 17 00:00:00 2001 From: Agata Firlejczyk Date: Thu, 6 Feb 2020 14:10:26 +0100 Subject: [PATCH] Hotfix - fix setting stock status for configurable products. --- .../Model/Indexer/DataProvider/Product/ConfigurableData.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/module-vsbridge-indexer-catalog/Model/Indexer/DataProvider/Product/ConfigurableData.php b/src/module-vsbridge-indexer-catalog/Model/Indexer/DataProvider/Product/ConfigurableData.php index 7df31940..2c6c8b50 100644 --- a/src/module-vsbridge-indexer-catalog/Model/Indexer/DataProvider/Product/ConfigurableData.php +++ b/src/module-vsbridge-indexer-catalog/Model/Indexer/DataProvider/Product/ConfigurableData.php @@ -268,7 +268,7 @@ private function prepareConfigurableProduct(array $productDTO) } } - if (!empty($productDTO['stock']['is_in_stock']) || !$areChildInStock) { + if (empty($productDTO['stock']['is_in_stock']) || !$areChildInStock) { $productDTO['stock']['is_in_stock'] = false; $productDTO['stock']['stock_status'] = 0; }