@php if (! isset($product)) { return; } $price ??= $product->price()->getPrice(); $isDisplayPriceOriginal ??= true; $priceWrapperClassName ??= null; $priceClassName ??= null; $priceOriginalClassName ??= null; $priceOriginalWrapperClassName ??= null; $shouldShowPrice = (! EcommerceHelper::hideProductPrice() || EcommerceHelper::isCartEnabled()) && (! EcommerceHelper::hideProductPriceWhenZero() || $price > 0); @endphp @if ($shouldShowPrice)