Fixed a bug in application of cart rule
This commit is contained in:
parent
9c379f1ba4
commit
bcdb4efb6c
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue