We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ed7c7d commit cf24f76Copy full SHA for cf24f76
app/code/Magento/Quote/Model/QuoteValidator.php
@@ -51,7 +51,7 @@ public function validateBeforeSubmit(QuoteEntity $quote)
51
}
52
$method = $quote->getShippingAddress()->getShippingMethod();
53
$rate = $quote->getShippingAddress()->getShippingRateByCode($method);
54
- if (!$quote->isVirtual() && (!$method || !$rate)) {
+ if (!$method || !$rate) {
55
throw new \Magento\Framework\Exception\LocalizedException(__('Please specify a shipping method.'));
56
57
0 commit comments