Skip to content

Commit cd02ca0

Browse files
committed
MAGETWO-60483: Catalog broken when all child products of configurable are disabled
- Fixes after code review;
1 parent 9d7ad13 commit cd02ca0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/code/Magento/Catalog/Model/Product/Pricing/Renderer/SalableResolver.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ class SalableResolver implements SalableResolverInterface
1919
*/
2020
public function isSalable(\Magento\Framework\Pricing\SaleableInterface $salableItem)
2121
{
22-
return ($salableItem->getCanShowPrice() === false || !$salableItem->isSalable())
23-
? false
24-
: true;
22+
return $salableItem->getCanShowPrice() !== false && $salableItem->isSalable();
2523
}
2624
}

0 commit comments

Comments
 (0)