Erkläre bei der Produktseiten-Zuordnung, warum ein Modul oder Lizenzartikel keine eigene Seite bekommt
CI Feature / test (push) Successful in 4m11s
Deploy Test / test (push) Successful in 3m55s
Deploy Test / deploy (push) Successful in 33s

Die Auswahl nennt je Eintrag, ob der Shop die Seite zeigen kann (Programm mit Anzeigefreigabe),
und die Fehlermeldung zur eigenen Paketseite nennt den Weg über Pakete oder ein Programm.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Sonnet 5.5 committed 2026-11-25 16:30:32 +01:00
1 parent 9041afda80
commit 1950dc377b
4 files changed
+51 -5

No files matched your search

+1 -1
View File
@@ -107,7 +107,7 @@ public function activate(Offer $offer, array $lines, array $attributes = []): Of
], $attributes);
if ($offer->standalone_bundle && (count($lines) !== 1 || ! $lines[0]['target'] instanceof BundleVersion)) {
throw new DomainRuleException('Ein Angebot mit eigener Paketseite besteht aus genau einer Paketfassung. Wähle eine Paketfassung oder ordne das Angebot der Seite eines Programms zu.');
throw new DomainRuleException('Ein Angebot mit eigener Paketseite besteht aus genau einer Paketfassung (Katalog → Pakete). Für einen Lizenzartikel ordnest du das Angebot der Seite eines Programms zu: Das Programm muss als Programm angelegt und zur Anzeige freigegeben sein, ein Modul genügt nicht.');
}
$this->assertAttributes($attributes);