From 57083e0c0c4a852893b2503071c790370d949df5 Mon Sep 17 00:00:00 2001 From: sanjeev Date: Sat, 23 Jul 2022 17:47:46 +0530 Subject: [PATCH] placed variable outside loop --- .../src/Resources/views/shop/checkout/cart/index.blade.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/Webkul/Velocity/src/Resources/views/shop/checkout/cart/index.blade.php b/packages/Webkul/Velocity/src/Resources/views/shop/checkout/cart/index.blade.php index 241962b8b..b467fcbab 100644 --- a/packages/Webkul/Velocity/src/Resources/views/shop/checkout/cart/index.blade.php +++ b/packages/Webkul/Velocity/src/Resources/views/shop/checkout/cart/index.blade.php @@ -54,12 +54,15 @@
@csrf + @php + $productOtherThanDownloadable = false; + @endphp + @foreach ($cart->items as $key => $item) @php $productBaseImage = $item->product->getTypeInstance()->getBaseImage($item); $product = $item->product; - $productOtherThanDownloadable = false; if ($item->product->type != "downloadable") { $productOtherThanDownloadable = true;