Mache den Lizenzartikel zur Produktseite und leite die Seite aus dem Angebot ab
CI Feature / test (push) Failing after 3m16s
CI Feature / test (push) Failing after 3m16s
Die Produktseite ist die Seite des Artikels (/shop/{id}), den die Option als einzige
Position verkauft, oder die Paketseite. Sie wird nicht mehr einem Programm zugeordnet.
Ein Kauf braucht genau eine Position und einen Preis, sonst lässt er sich nicht aktivieren.
Module und Programme werden dadurch nicht öffentlich (Karten und /programme unverändert).
Tests: Die Tests, die eine Programmseite als Produktseite voraussetzten, prüfen jetzt die
Artikelseite; die Zuordnung „eigene Paketseite oder Programmseite“ entfällt (ADR-52).
Ein Altbestandstest sichert die Programmseite für Angebote mit mehreren Positionen.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1950dc377b
commit
08f7d0c63d
22 files changed
+544
-275
No files matched your search
@@ -0,0 +1,39 @@
|
||||
@extends('layouts.site')
|
||||
|
||||
@section('title', $title)
|
||||
|
||||
@section('content')
|
||||
<p><a href="{{ route('shop') }}">Shop</a></p>
|
||||
<h1>{{ $title }}</h1>
|
||||
@if ($profile->html('summary') !== '')
|
||||
<div class="lede">{!! $profile->html('summary') !!}</div>
|
||||
@elseif (filled($profile->value('teaser')))
|
||||
<p class="lede">{{ $profile->value('teaser') }}</p>
|
||||
@endif
|
||||
@if ($profile->html('description') !== '')
|
||||
<div class="shop-description">{!! $profile->html('description') !!}</div>
|
||||
@endif
|
||||
@if ($goal !== null)
|
||||
<div><strong>Lernziel:</strong> {!! \App\Domain\Catalog\FormattedText::display($goal) !!}</div>
|
||||
@endif
|
||||
@if ($nodes !== [])
|
||||
<section class="shop-package-contents" aria-labelledby="artikel-aufbau">
|
||||
<h2 id="artikel-aufbau">Das ist enthalten</h2>
|
||||
<ol class="course">
|
||||
@foreach ($nodes as $node)
|
||||
<li>
|
||||
<h3>{{ $node->role }}: {{ $node->title }}</h3>
|
||||
@if ($node->children !== [])
|
||||
<ol>
|
||||
@foreach ($node->children as $child)
|
||||
<li>{{ $child->role }}: {{ $child->title }}</li>
|
||||
@endforeach
|
||||
</ol>
|
||||
@endif
|
||||
</li>
|
||||
@endforeach
|
||||
</ol>
|
||||
</section>
|
||||
@endif
|
||||
@include('shop.optionen', ['options' => $options, 'cart' => $cart, 'switchTo' => $switchTo])
|
||||
@endsection
|
||||
@@ -25,5 +25,15 @@
|
||||
</li>
|
||||
@endforeach
|
||||
</ol>
|
||||
@if (($articles ?? []) !== [])
|
||||
<section class="shop-options" aria-labelledby="programm-kaufen">
|
||||
<h2 id="programm-kaufen">Zum Kaufen</h2>
|
||||
<ul>
|
||||
@foreach ($articles as $article)
|
||||
<li><a href="{{ route('shop.article', $article) }}">{{ app(\App\Domain\Commerce\ProductOptions::class)->articleTitle($article) }}: Lizenzoptionen ansehen</a></li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</section>
|
||||
@endif
|
||||
@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 und Pakete. Jede Kachel öffnet die Produktseite mit Inhalt und den verfügbaren Lizenzoptionen.</p>
|
||||
<p class="lede">Hier findest du kaufbare Produkte 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>
|
||||
|
||||
Reference in new issue
Block a user