Skip to content

Commit 8fba95e

Browse files
MAGETWO-94062: Quantity Increments of selected simple within a Configurable Product does not work
1 parent 15dded6 commit 8fba95e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

app/code/Magento/CatalogInventory/Model/Quote/Item/QuantityValidator.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,12 @@ private function checkOptionsQtyIncrements(Item $quoteItem, array $options)
217217
$removeErrors = true;
218218
foreach ($options as $option) {
219219
$result = $this->stockState->checkQtyIncrements(
220-
$option->getProduct()->getId(),
220+
$option->getProduct()->getId(),
221221
$quoteItem->getData('qty'),
222222
$option->getProduct()->getStore()->getWebsiteId()
223223
);
224224
if ($result->getHasError()) {
225-
$quoteItem->getQuote()->addErrorInfo(
225+
$quoteItem->getQuote()->addErrorInfo(
226226
$result->getQuoteMessageIndex(),
227227
'cataloginventory',
228228
Data::ERROR_QTY_INCREMENTS,
@@ -235,10 +235,7 @@ private function checkOptionsQtyIncrements(Item $quoteItem, array $options)
235235

236236
if ($removeErrors) {
237237
// Delete error from item and its quote, if it was set due to qty problems
238-
$this->_removeErrorsFromQuoteAndItem(
239-
$quoteItem,
240-
Data::ERROR_QTY_INCREMENTS
241-
);
238+
$this->_removeErrorsFromQuoteAndItem($quoteItem, Data::ERROR_QTY_INCREMENTS);
242239
}
243240
}
244241

0 commit comments

Comments
 (0)