From 44c5ebc4f87ec40c0e2078b6e2507d484922cc8d Mon Sep 17 00:00:00 2001 From: Prashant Singh Date: Fri, 6 Sep 2019 12:41:46 +0530 Subject: [PATCH] refactoring --- packages/Webkul/Discount/src/Actions/Cart/FixedAmount.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/Webkul/Discount/src/Actions/Cart/FixedAmount.php b/packages/Webkul/Discount/src/Actions/Cart/FixedAmount.php index 18c47e98a..4daeb90be 100644 --- a/packages/Webkul/Discount/src/Actions/Cart/FixedAmount.php +++ b/packages/Webkul/Discount/src/Actions/Cart/FixedAmount.php @@ -39,7 +39,7 @@ class FixedAmount extends Action if ($apply()) { if ($rule->action_type == 'whole_cart_to_fixed') { - \Cart::getCart()->items; + $eligibleItems = \Cart::getCart()->items; } foreach ($eligibleItems as $item) {