Skip to content

Commit 9609270

Browse files
committed
MAGETWO-94308: User can place order with amount less than "minimum order amount" via Checkout with multiple address flow.
- Extract config value to variable to resolve code style error
1 parent 4f0315e commit 9609270

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

app/code/Magento/Multishipping/Model/Checkout/Type/Multishipping.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -904,10 +904,12 @@ public function validateMinimumAmount()
904904
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
905905
);
906906

907-
if ($this->_scopeConfig->isSetFlag(
907+
$minimumOrderMultiFlag = $this->_scopeConfig->isSetFlag(
908908
'sales/minimum_order/multi_address',
909-
\Magento\Store\Model\ScopeInterface::SCOPE_STORE)
910-
) {
909+
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
910+
);
911+
912+
if ($minimumOrderMultiFlag) {
911913
$result = !($minimumOrderActive && !$this->getQuote()->validateMinimumAmount());
912914
} else {
913915
$result = !($minimumOrderActive && !$this->validateMinimumAmountForAddressItems());

0 commit comments

Comments
 (0)