CheckOnShipping method added to check where rule applies on shipping or not
This commit is contained in:
parent
25007824eb
commit
4339475e70
|
|
@ -150,6 +150,8 @@ abstract class Discount
|
|||
$this->updateCartItemAndCart($rule);
|
||||
|
||||
return true;
|
||||
} else {
|
||||
$this->checkOnShipping();
|
||||
}
|
||||
} else {
|
||||
$this->cartRuleCart->create([
|
||||
|
|
|
|||
|
|
@ -147,8 +147,6 @@ class OnepageController extends Controller
|
|||
|
||||
$this->nonCoupon->apply();
|
||||
|
||||
$this->nonCoupon->checkOnShipping();
|
||||
|
||||
Cart::collectTotals();
|
||||
|
||||
return response()->json(Payment::getSupportedPaymentMethods());
|
||||
|
|
@ -168,8 +166,6 @@ class OnepageController extends Controller
|
|||
|
||||
$this->nonCoupon->apply();
|
||||
|
||||
$this->nonCoupon->checkOnShipping();
|
||||
|
||||
Cart::collectTotals();
|
||||
|
||||
$cart = Cart::getCart();
|
||||
|
|
|
|||
Loading…
Reference in New Issue