Skip to content

Commit 9ed24ae

Browse files
committed
IsProductSalable/AreProdustsSalable composite products support. #3140
Load product salability data on-demand #3201. Fixed IsProductSalable for products with calculated SKUs
1 parent d612570 commit 9ed24ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

InventoryCatalog/Model/IsProductSalable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function execute(Product $product): bool
5454
return (bool)$product->getData('is_salable');
5555
}
5656
$stockId = $this->getStockIdForCurrentWebsite->execute();
57-
$result = current($this->areProductsSalable->execute([$product->getSku()], $stockId));
57+
$result = current($this->areProductsSalable->execute([$product->getData(Product::SKU)], $stockId));
5858
$isSalable = $result->isSalable();
5959
$product->setData('is_salable', $isSalable);
6060

0 commit comments

Comments
 (0)