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)