feat(catalog): make the product page complete #52
No reviewers
Labels
No labels
Area/API
Area/CI
Area/Frontend
Area/Katalog
Area/SEO
Area/Warenkorb
Kind/Bug
Kind/Chore
Kind/Docs
Kind/Feature
Phase/10 Shop-Widgets
Phase/1 Grundgerüst
Phase/2 Katalog
Phase/3 Shop-Seiten
Phase/4 Shop-SEO
Phase/5 Warenkorb
Phase/6 Checkout-Übergabe
Phase/7 Domain-Switcher
Phase/8 Analytics und QA
Phase/9 Release
Priority/High
Priority/Low
Priority/Normal
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Sulu-Bundles/wsc_sulubundle_syliusheadless!52
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/produktseite"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Die Produktseite zeigt jetzt, was zum Kaufentscheid nötig ist: Bildergalerie, Auswahl der Ausführung, Preis und Verfügbarkeit der gewählten Variante sowie die Produktangaben.
Der Variantenwechsel kostet weder Seitenwechsel noch Anfrage. Die Shop-API liefert alle Varianten eines Produkts in einem Aufruf — sie stehen deshalb vollständig im Markup. Ohne JavaScript bleibt dieselbe Auswahl als Formular bedienbar (
?option[gruppe]=wert), womit die Tastaturbedienung der Normalfall ist und keine Zutat.Inhalt
ProductOption,ProductOptionValueundProductAttributeals typisierte ModelleProductOptionRepositoryholt die Wertnamen — begrenzt auf die Werte, die in den Varianten wirklich vorkommen — und legt sie in den Katalog-CacheVariantSelectorantwortet immer: eine halbe oder erfundene Auswahl fällt auf die Standardvariante zurück, statt die Seite zu zerstören/products/{code}/attributes— ein Pfad, den das Produkt selbst nicht erwähntDie Warenkorb-Schaltfläche ist vorhanden, aber deaktiviert: der Warenkorb folgt in Phase 5 (#25 ff.).
Nachgewiesen am laufenden Shop
/p/ethereal-drift-t-shirt→ fünf Grössen, 4 Bilder, 4 Angaben;?option[t_shirt_size]=t_shirt_size_xxl→ 24,69 USD statt 3,75 USD/p/beach-bonfire-beauty→ zwei Gruppen (Grösse und Höhe), beide Auswahlen greifen/p/adventurous-aurora-cap→ keine leere AuswahlGates lokal grün: php-cs-fixer, PHPStan Level 8, 183 Tests / 496 Assertions.
closes #17
🤖 Generated with Claude Code
The page now shows what a customer needs to decide: an image gallery, the selection of a variant, the price and stock of the chosen one, and the product's own data. Switching a variant costs neither a page change nor a request — the shop API delivers all variants of a product in one call, so they all sit in the markup. Without JavaScript the same selection stays usable as a form (?option[group]=value), which makes keyboard operation the normal case rather than an addition. - ProductOption, ProductOptionValue and ProductAttribute as typed models - ProductOptionRepository reads the value names, limited to the values the variants actually use, and caches them - VariantSelector always answers: a half or invented choice falls back instead of breaking the page - attributes come from /products/{code}/attributes, a path the product itself does not mention The cart button is present but disabled: the cart follows in phase 5. closes #17 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>