Gib Paketen eine eigene Produktseite und ergänze Tests zu Nutzerkreis und Verkaufsstart
Ein eigenständig vermarktetes Paket (offers.standalone_bundle) erhält /pakete/{id}
mit seinem tatsächlichen Umfang, Shop-Kachel und Suche. Die Angebotsmaske kennt
Nutzerkreis und Anzahl Trainer. Zwei Bestandstests (CartTest, Vergleich der
Rechte und Erwerbsarten) legen die Vergleichsangebote jetzt als Einzellizenz an,
weil der Nutzerkreis zum identischen Umfang gehört; ihre Aussagen bleiben.
Eine Rechnungs- oder Stripe-Bestellung lässt sich nicht mit der Testzahlung bestätigen.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0154182f3b
commit
1ce2e1e51f
21 files changed
+997
-31
No files matched your search
@@ -62,7 +62,7 @@
|
||||
<button class="button" type="submit">{{ $live ? 'Jetzt bezahlen' : 'Jetzt bezahlen (Stripe-Testmodus)' }}</button>
|
||||
</form>
|
||||
@endif
|
||||
@if ($testPayment && $order->status === 'offen')
|
||||
@if ($testPayment && $order->status === 'offen' && ! $invoiceOrder && $order->payment_method !== 'stripe')
|
||||
<form method="post" action="{{ route('member.order.confirm', $order) }}">
|
||||
@csrf
|
||||
<button class="button" type="submit">Testzahlung bestätigen</button>
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
@extends('layouts.site')
|
||||
|
||||
@section('title', $bundle->name)
|
||||
|
||||
@section('content')
|
||||
<p><a href="{{ route('shop') }}">Shop</a></p>
|
||||
<h1>{{ $bundle->name }}</h1>
|
||||
<p class="lede">Ein Paket mit {{ count($contents) }} {{ count($contents) === 1 ? 'Inhalt' : 'Inhalten' }}. Es wird nur zusammen gekauft.</p>
|
||||
<section class="shop-package-contents" aria-labelledby="paket-umfang">
|
||||
<h2 id="paket-umfang">Das ist im Paket enthalten</h2>
|
||||
<ul class="shop-scope">
|
||||
@foreach ($contents as $item)
|
||||
<li>
|
||||
<strong>{{ $item['title'] }}</strong>
|
||||
@if ($item['teaser'] !== '')<span>{{ $item['teaser'] }}</span>@endif
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</section>
|
||||
@include('shop.optionen', ['options' => $options, 'cart' => $cart, 'switchTo' => $switchTo])
|
||||
@endsection
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
@section('content')
|
||||
<h1>Shop</h1>
|
||||
<p class="lede">Hier findest du kaufbare Programme. Jede Kachel öffnet die Produktseite mit Inhalt und den verfügbaren Lizenzoptionen.</p>
|
||||
<p class="lede">Hier findest du kaufbare Programme und Pakete. Jede Kachel öffnet die Produktseite mit Inhalt und den verfügbaren Lizenzoptionen.</p>
|
||||
|
||||
<form class="shop-search" method="get" action="{{ route('shop') }}" role="search">
|
||||
<label for="shop-suche">Shop durchsuchen</label>
|
||||
@@ -25,7 +25,7 @@
|
||||
<ul class="shop-tiles">
|
||||
@foreach ($cards as $card)
|
||||
<li class="shop-tile">
|
||||
<h2><a href="{{ route('public.program', $card['composition']) }}">{{ $card['title'] }}</a></h2>
|
||||
<h2><a href="{{ $card['url'] }}">{{ $card['title'] }}</a></h2>
|
||||
@if ($card['teaser'] !== '')<p>{{ $card['teaser'] }}</p>@endif
|
||||
<p class="shop-tile-price">ab {{ $card['from'] }} · {{ $card['count'] }} {{ $card['count'] === 1 ? 'Lizenzoption' : 'Lizenzoptionen' }}</p>
|
||||
</li>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
@csrf
|
||||
<button class="button" type="submit">Zu „{{ $wanted['name'] }}“ wechseln</button>
|
||||
</form>
|
||||
<a class="button button-secondary" href="{{ route('public.program', $wanted['offer']->composition_id) }}">Bei „{{ $current->optionName() }}“ bleiben</a>
|
||||
<a class="button button-secondary" href="{{ app(\App\Domain\Commerce\ProductOptions::class)->pageUrl($wanted['offer']) }}">Bei „{{ $current->optionName() }}“ bleiben</a>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
Reference in new issue
Block a user