Fixed issues with discount as collect totals was not getting called on applying couponable rule

This commit is contained in:
Prashant Singh 2019-06-17 12:33:34 +05:30
parent 90c229442d
commit f3437ee214
2 changed files with 4 additions and 0 deletions

View File

@ -94,6 +94,8 @@ class CouponAbleRule extends Discount
} else {
// least id case
if ($applicableRule->id < $alreadyAppliedRule->id) {
$this->save($applicableRule);
return $impact;
}
}

View File

@ -263,6 +263,8 @@ abstract class Discount
}
}
Cart::collectTotals();
return true;
}