placed variable outside loop
This commit is contained in:
parent
b191962ee3
commit
57083e0c0c
|
|
@ -54,12 +54,15 @@
|
||||||
<div class="cart-item-list">
|
<div class="cart-item-list">
|
||||||
@csrf
|
@csrf
|
||||||
|
|
||||||
|
@php
|
||||||
|
$productOtherThanDownloadable = false;
|
||||||
|
@endphp
|
||||||
|
|
||||||
@foreach ($cart->items as $key => $item)
|
@foreach ($cart->items as $key => $item)
|
||||||
@php
|
@php
|
||||||
$productBaseImage = $item->product->getTypeInstance()->getBaseImage($item);
|
$productBaseImage = $item->product->getTypeInstance()->getBaseImage($item);
|
||||||
|
|
||||||
$product = $item->product;
|
$product = $item->product;
|
||||||
$productOtherThanDownloadable = false;
|
|
||||||
|
|
||||||
if ($item->product->type != "downloadable") {
|
if ($item->product->type != "downloadable") {
|
||||||
$productOtherThanDownloadable = true;
|
$productOtherThanDownloadable = true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue