Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Hotfix - fix setting stock status for configurable products.
Browse files Browse the repository at this point in the history
  • Loading branch information
Agata Firlejczyk committed Feb 6, 2020
1 parent c3bcc02 commit 05ebbdf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 05ebbdf

Please sign in to comment.