@if ($displayBasePrice) {{ trans('plugins/ecommerce::product-option.price') }}: {{ format_price($product->original_product->front_sale_price_with_taxes) }} @endif @foreach ($productOptions['optionCartValue'] as $key => $optionValue) @php $price = 0; $totalOptionValue = count($optionValue); @endphp @continue(!$totalOptionValue) {{ $productOptions['optionInfo'][$key] }}: @foreach ($optionValue as $value) @php if ($value['affect_type'] == 1) { $price += ($product->original_product->front_sale_price_with_taxes * $value['affect_price']) / 100; } else { $price += $value['affect_price']; } @endphp {{ $value['option_value'] }} @if ($key + 1 < $totalOptionValue) , @endif @endforeach @if ($price > 0) + {{ format_price($price) }} @endif @endforeach