From ba4d7b443fba1265c7b6a71fe42e0f3073a2fb07 Mon Sep 17 00:00:00 2001 From: Marco Date: Thu, 23 Jul 2026 19:19:36 +0000 Subject: [PATCH] Document today's features in the README Stock-capped add-to-cart, B2B checkout fields, VAT exemption (innergemeinschaftliche Lieferung + VIES), blur-time checkout validation, and the invoice-layout/e-invoicing status fixes. Co-Authored-By: Claude Sonnet 5 --- README.md | 171 ++++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 140 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index 4323066..902d7a3 100644 --- a/README.md +++ b/README.md @@ -246,6 +246,19 @@ check against Payload's public API, unlike most content on this site. `localStorage` under `ep_cart`, keyed by each product's `slug`. Still the source of truth while browsing — the server-side mirror (see below) only exists to carry a logged-in customer's cart across devices/browsers. +- **Add-to-cart is capped at actual remaining stock (fixed 2026-07-23)** — + previously only checked at checkout, so a shopper could add more of a + product than was actually in stock and only find out at the last step. + `Product`/its variants now carry a real `maxQty` (`app/lib/payload.ts`'s + `mapPayloadProduct()` — `null` when unlimited, i.e. backorder allowed or + inventory untracked; a deliberate, narrow exception to that function's + own "the public API has no reason to leak exact stock counts" comment, + since the add-to-cart controls genuinely need it). `AddToCartButton`/ + `AddToCartInlineButton` disable (and show "Maximale Menge im Warenkorb") + once the cart already holds that many; `/cart`'s quantity `