We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d612570 commit 9ed24aeCopy full SHA for 9ed24ae
InventoryCatalog/Model/IsProductSalable.php
@@ -54,7 +54,7 @@ public function execute(Product $product): bool
54
return (bool)$product->getData('is_salable');
55
}
56
$stockId = $this->getStockIdForCurrentWebsite->execute();
57
- $result = current($this->areProductsSalable->execute([$product->getSku()], $stockId));
+ $result = current($this->areProductsSalable->execute([$product->getData(Product::SKU)], $stockId));
58
$isSalable = $result->isSalable();
59
$product->setData('is_salable', $isSalable);
60
0 commit comments