Add coupons, newsletter, country-based shipping, sale prices, USP bar
Deploy to Production (witstore.wende.it) / deploy (push) Successful in 8s

- Gutscheincodes: DB-Verwaltung (%, €-Rabatt, Mindestbestellwert, Ablauf),
  Eingabefeld im Checkout, Admin unter Marketing → Gutscheine
- Newsletter: Double-Opt-In per E-Mail, Formular im Footer,
  Admin-Liste mit CSV-Export
- Länderzonen-Versand: DE / DACH / EU / WORLD, Versandkosten nach
  Lieferland dynamisch berechnet, Coupon-Rabatt in Bestellung gespeichert
- Sale-Preise: sale_price auf Produkten, durchgestrichener UVP auf
  Produktkarte, Sonderangebote-Sektion auf Startseite
- USP-Leiste auf Startseite: Versand, Zahlung, Rückgabe, Service

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-21 11:07:14 +02:00
co-authored by Claude Sonnet 4.6
parent 5dad8b9324
commit 092dae6085
27 changed files with 782 additions and 51 deletions
+40
View File
@@ -2,6 +2,30 @@
@section('title', \App\Models\Setting::get('shop_name', 'Shop'))
@section('content')
{{-- USP-Leiste --}}
<div class="grid grid-cols-2 md:grid-cols-4 gap-4 mb-8 text-center">
<div class="bg-white rounded-lg p-4 border">
<div class="text-2xl mb-1">🚚</div>
<p class="text-sm font-semibold">Schnelle Lieferung</p>
<p class="text-xs text-gray-400">1-3 Werktage</p>
</div>
<div class="bg-white rounded-lg p-4 border">
<div class="text-2xl mb-1">🔒</div>
<p class="text-sm font-semibold">Sicher bezahlen</p>
<p class="text-xs text-gray-400">Vorkasse & Rechnung</p>
</div>
<div class="bg-white rounded-lg p-4 border">
<div class="text-2xl mb-1">↩️</div>
<p class="text-sm font-semibold">14 Tage Rückgabe</p>
<p class="text-xs text-gray-400">Widerrufsrecht</p>
</div>
<div class="bg-white rounded-lg p-4 border">
<div class="text-2xl mb-1">📞</div>
<p class="text-sm font-semibold">Persönlicher Service</p>
<p class="text-xs text-gray-400">{{ \App\Models\Setting::get('shop_phone', '') }}</p>
</div>
</div>
{{-- Banner --}}
@if($banners->count())
<div class="relative mb-10 -mx-4" x-data="{ current: 0 }">
@@ -65,6 +89,22 @@
</div>
@endif
{{-- Sonderangebote --}}
@if($saleProducts->count())
<div class="mb-12">
<div class="flex items-center gap-3 mb-6">
<span class="text-2xl">🏷️</span>
<h2 class="text-2xl font-bold">Sonderangebote</h2>
<span class="bg-red-100 text-red-700 text-xs font-bold px-2 py-0.5 rounded-full">SALE</span>
</div>
<div class="grid grid-cols-2 md:grid-cols-4 gap-6">
@foreach($saleProducts as $product)
@include('shop.products._card', ['product' => $product])
@endforeach
</div>
</div>
@endif
{{-- Neue Produkte --}}
@if($newProducts->count())
<div class="mb-12">