{{-- NEW: Minimal CSS for quantity controls --}} {{--
  • @if (is_plugin_active('marketplace') && $product->original_product->store->id) @endif {{ format_price($cartItem->price) }} @if ($product->front_sale_price != $product->price) {{ format_price($product->price) }} @endif @php // Allowed attributes $allowedAttributes = ['(Diameter', 'Pattern', 'Profile', 'Width', 'Size']; // Convert "key: value" items into an associative array $attributes = []; if (!empty($cartItem->options['attributes'])) { foreach (explode(',', $cartItem->options['attributes']) as $attr) { if (strpos($attr, ':') !== false) { [$key, $value] = array_map('trim', explode(':', $attr, 2)); if (in_array($key, $allowedAttributes)) { $attributes[$key] = $value; } } } } @endphp @if (!empty($attributes))
    @foreach ($attributes as $key => $value)
    {{ ltrim($key, '(') }}:{{ rtrim($value, ')') }}
    @endforeach
    @endif @if (!empty($cartItem->options['options'])) {!! render_product_options_info($cartItem->options['options'], $product, true) !!} @endif @if (!empty($cartItem->options['extras']) && is_array($cartItem->options['extras'])) @foreach ($cartItem->options['extras'] as $option) @if (!empty($option['key']) && !empty($option['value']))

    {{ $option['key'] }}: {{ $option['value'] }}

    @endif @endforeach @endif
    {{ $cartItem->qty }}
  • --}}
  • {{ format_price($cartItem->price) }} @if ($product->front_sale_price != $product->price) {{ format_price($product->price) }} @endif
    @php // Allowed attributes $allowedAttributes = ['Diameter', 'Pattern', 'Profile', 'Width', 'Size']; // Convert "key: value" items into an associative array $attributes = []; if (!empty($cartItem->options['attributes'])) { foreach (explode(',', $cartItem->options['attributes']) as $attr) { if (strpos($attr, ':') !== false) { [$key, $value] = array_map('trim', explode(':', $attr, 2)); if (in_array($key, $allowedAttributes)) { $attributes[$key] = $value; } } } } @endphp @if (!empty($attributes))
    @foreach ($attributes as $key => $value)
    {{ ltrim($key, '(') }}: {{ rtrim($value, ')') }}
    @endforeach
    @endif
    {{ $cartItem->qty }}