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

Commit 2bd7310

Browse files
authored
Merge pull request #202 from rain2o/bugfix/max_sale_qty-incorrect-value
Fix incorrect value for max_sale_qty
2 parents 96a3673 + 7b6c8f5 commit 2bd7310

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.MD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
### Fixed
6+
- Fixed `max_sale_qty` getting wrong value when set per-product. [@rain2o](https://github.com/rain2o) ([#201](https://github.com/DivanteLtd/magento2-vsbridge-indexer/issues/201))
57

68
## [1.9.0] (2020.01.28)
79

src/module-vsbridge-indexer-catalog/Model/InventoryProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function prepareInventoryData($storeId, array $inventory)
5555
}
5656

5757
if (!empty($inventory[StockItemInterface::USE_CONFIG_MIN_SALE_QTY])) {
58-
$inventory['max_sale_qty'] = $this->stockConfiguration->getMinSaleQty($storeId);
58+
$inventory['min_sale_qty'] = $this->stockConfiguration->getMinSaleQty($storeId);
5959
}
6060

6161
if (!empty($inventory[StockItemInterface::USE_CONFIG_MAX_SALE_QTY])) {

0 commit comments

Comments
 (0)