Skip to content

Commit

Permalink
Merge pull request #28 from NOOE-Phygital-Stores/dev
Browse files Browse the repository at this point in the history
v1.1.4
  • Loading branch information
nghelo authored Nov 29, 2022
2 parents 6059348 + 68d61b6 commit 863ff08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Model/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ public function getStockBySku($sku)
{
//$storeId = $this->_storeManager->getStore()->getId();
$storeId = (int)$this->configData->getStoreId();
$stockStatus = $this->stockRegistry->getStockStatusBySku($sku, $storeId);
$websiteId = $this->_storeManager->getStore($storeId)->getWebsiteId();
$stockStatus = $this->stockRegistry->getStockStatusBySku($sku, $websiteId);
$stockData = $stockStatus->getStockItem()->getData();

if ($this->configData->getSalableQuantity($storeId)) {
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nooe/module-connector",
"description": "Nooe Magento 2 Connector",
"type": "magento2-module",
"version": "1.1.3",
"version": "1.1.4",
"minimum-stability": "stable",
"license": "proprietary",
"require": {
Expand Down

0 comments on commit 863ff08

Please sign in to comment.