placed variable outside loop
This commit is contained in:
parent
b191962ee3
commit
57083e0c0c
|
|
@ -54,12 +54,15 @@
|
|||
<div class="cart-item-list">
|
||||
@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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue