Fixed a bug in application of cart rule

This commit is contained in:
Prashant Singh 2019-06-17 18:48:54 +05:30
parent 9c379f1ba4
commit bcdb4efb6c
1 changed files with 1 additions and 3 deletions

View File

@ -173,9 +173,7 @@ class NonCouponAbleRule extends Discount
return $prioritySorted;
}
} else if (count($applicableRules) == 1) {
$rule = array_first($applicableRules)['rule'];
$this->save($applicableRules);
$this->save(array_first($applicableRules)['rule']);
return array_first($applicableRules)['impact'];
} else {