CheckOnShipping method added to check where rule applies on shipping or not

This commit is contained in:
Prashant Singh 2019-06-27 19:55:36 +05:30
parent 25007824eb
commit 4339475e70
2 changed files with 2 additions and 4 deletions

View File

@ -150,6 +150,8 @@ abstract class Discount
$this->updateCartItemAndCart($rule);
return true;
} else {
$this->checkOnShipping();
}
} else {
$this->cartRuleCart->create([

View File

@ -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();