Can't place order after migration data from M1 to M2
Can't place an order after migration data from M1 to M2. When I try to place an order, it shows "Please choose a valid discount amount."
Posted: August 03, 2020
When I try to place an order, it shows "Please choose a valid discount amount."
Solution:
Section responsible for that error looks like
// Check if discount amount not negative
if ($this->hasDiscountAmount()) {
if ((int)$this->getDiscountAmount() < 0) {
throw new \Magento\Framework\Exception\LocalizedException(__('Please choose a valid discount amount.'));
}
}
Check your cart rules after migration cause this error is thrown when the applied discount amount is less than 0.
0 Comment(s)