Conversation
The storefront's public cart face (PR③ of checkout). Themed private
/cart section (no-store) + POST /ext/shop/cart/{add,update} action routes
(ADR 0017) driving Commerce's CartPort — never its tables. Add-to-cart
forms on the product listing + detail templates; a shop-cart template
with live per-line prices + update/remove.
Security (ADR 0026): the cart is an opaque server-random cookie token
(HttpOnly+SameSite=Lax+Secure); viewing never mints a cart; a
pre-existing cart's mutation requires its per-cart CSRF token (a first
bootstrap add is covered by SameSite=Lax); server-side price throughout;
degrades to a redirect when Commerce is absent. Adds nimbuscms/commerce
as a soft dependency (the CartPort contract, ADR 0019).
PHPStan max, 12 tests, cs-fixer green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR③ of Commerce checkout (Foodmart Slice 4). The storefront's public cart: a themed private
/cartsection +/ext/shop/cart/{add,update}POST actions driving Commerce'sCartPort, plus add-to-cart buttons.Cart = opaque server-random cookie (HttpOnly+SameSite=Lax+Secure); viewing mints nothing; a real cart's mutation requires its per-cart CSRF token; server-side price. See ADR 0026. PHPStan max · 12 tests · cs-fixer clean.
🤖 Generated with Claude Code