Trenne Shop sichtbar und Checkout offen und kaufe nur noch ueber die Kasse
CI Feature / test (push) Successful in 3m23s
Deploy Test / test (push) Successful in 3m22s
Deploy Test / deploy (push) Successful in 30s

- Zwei Schalter: Shop::visible (SHOP_PUBLIC) und Shop::checkoutOpen; ist der Shop nur sichtbar,
  fuehren Warenkorb, Kasse und Jetzt kaufen auf eine Hinweisseite (noindex), ohne Warenkorb und Bestellung
- Einzelkauf (Checkout::place, Route member.offers.buy) entfernt; Bestellung nur aus dem Warenkorb
- Jetzt kaufen an der Produktseite oeffnet die Bestellübersicht, Bereits erworben auf der Produktseite
- Menuepunkte in den Shop nur bei sichtbarem Shop, /angebote leitet auf /shop, Seeder fuehrt Shop
- Mitgliederseite Angebote zeigt nur kostenlose Angebote zum Uebernehmen
- Middleware EnsureCheckoutOpen laeuft vor der Anmeldepruefung
- Plan und ADR-53, DEPLOYMENT.md

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Sonnet 5.5 committed 2026-11-26 07:17:25 +01:00
1 parent 28e3342b1f
commit 3d76062097
36 files changed
+756 -150

No files matched your search

@@ -26,7 +26,7 @@ public function index(PublicCatalogReader $catalog): View
*/
public function package(Bundle $bundle, ProductOptions $products, Cart $cart): View
{
abort_unless(Shop::enabled(), 404);
abort_unless(Shop::visible(), 404);
$options = $products->forBundle($bundle);
abort_if($options === [], 404);
@@ -45,7 +45,7 @@ public function package(Bundle $bundle, ProductOptions $products, Cart $cart): V
*/
public function article(LicenseArticle $article, ProductOptions $products, Cart $cart): View
{
abort_unless(Shop::enabled() && $article->archived_at === null, 404);
abort_unless(Shop::visible() && $article->archived_at === null, 404);
$options = $products->forArticle($article);
abort_if($options === [], 404);
@@ -70,8 +70,8 @@ public function program(Composition $composition, PublicCatalogReader $catalog,
'composition' => $composition,
'version' => $version,
'nodes' => app(CompositionStructureReader::class)->tree($version),
'options' => Shop::enabled() ? $products->forComposition($composition) : [],
'articles' => Shop::enabled() ? $products->articlesOf($composition) : [],
'options' => Shop::visible() ? $products->forComposition($composition) : [],
'articles' => Shop::visible() ? $products->articlesOf($composition) : [],
'cart' => $cart,
'switchTo' => session('shop.switch'),
]);