From bc2b86c13195a2365c532e973d672a3b20cb04b5 Mon Sep 17 00:00:00 2001 From: sanjeev Date: Sat, 23 Jul 2022 17:16:10 +0530 Subject: [PATCH] Invisible update cart button issue in case downloadable product added with other into cart --- .../views/shop/checkout/cart/index.blade.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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 5e09f86e3..b6692aa46 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,21 @@
@csrf + @php + $productOtherThanDownloadable = false; + @endphp + @foreach ($cart->items as $key => $item) @php $productBaseImage = $item->product->getTypeInstance()->getBaseImage($item); - + $product = $item->product; + if ($item->product->type != "downloadable") { + $productOtherThanDownloadable = true; + } + + $productPrice = $product->getTypeInstance()->getProductPrices(); if (is_null ($product->url_key)) { @@ -206,7 +215,7 @@ - @if ($item->product->getTypeInstance()->showQuantityBox() === true) + @if ($productOtherThanDownloadable)