Merge pull request #6597 from papnoisanjeev/update-cart-button-invisible-issue

Invisible update cart button issue in case downloadable product added into cart.
This commit is contained in:
Jitendra Singh 2022-07-23 19:11:32 +05:30 committed by GitHub
commit 093469e7a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -54,6 +54,10 @@
<div class="cart-item-list">
@csrf
@php
$showUpdateCartButton = false;
@endphp
@foreach ($cart->items as $key => $item)
@php
$productBaseImage = $item->product->getTypeInstance()->getBaseImage($item);
@ -62,6 +66,10 @@
$productPrice = $product->getTypeInstance()->getProductPrices();
if ($product->getTypeInstance()->showQuantityBox()) {
$showUpdateCartButton = true;
}
if (is_null ($product->url_key)) {
if (! is_null($product->parent)) {
$url_key = $product->parent->url_key;
@ -206,7 +214,7 @@
</button>
</form>
@if ($item->product->getTypeInstance()->showQuantityBox() === true)
@if ($showUpdateCartButton)
<button
type="submit"
class="theme-btn light unset">