# Changelog

> Release history of the Cart Splitter suite, all packages in one timeline.

Current version: **1.0.0**

All packages release together and carry the same version.

## 1.0.0 — 2026-11-26

### qoliber/cart-splitter-hyva-suite

#### Added
- Metapackage installing `qoliber/cart-splitter` and `qoliber/cart-splitter-hyva` 1.0.x together; suggests
  `qoliber/cart-splitter-hyva-checkout` for delivery per seller on Hyvä Checkout (a separately licensed product,
  so it is not required).

### Qoliber_CartSplitter

#### Added
- Seller grouping of the cart by a configurable product attribute (dropdown or single-line text), enabled and
  configured per website (**Stores → Configuration → qoliber → Cart Splitter**); items without a value form an
  "Other items" group (label configurable per store view). One quote, one checkout, one payment, one order.
- Group resolution for simple, virtual, downloadable, configurable (child value first, then parent), bundle
  (parent) and grouped products; extension point `Qoliber\CartSplitter\Api\GroupResolverInterface`.
- Cart projection with per-seller subtotals (excl./incl. tax, discount) that always add up to the cart totals.
- Order snapshot: seller key and label stored on every order item at placement (`sales_order_item.qoliber_group_key`,
  `qoliber_group_label`); later catalog or configuration changes never regroup old orders.
- Luma cart page and minicart grouped by seller (pager-aware, tax-display aware, escaped labels, native markup kept);
  a seller with an item whose price Minimum Advertised Price hides until order confirmation shows no subtotal or
  free-delivery progress ("See price before order confirmation.").
- Admin order view, My Account order view and print, and the "New Order" email grouped by seller (base and order
  currency in admin); orders placed without grouping render natively.
- REST: `GET /V1/carts/mine|:cartId/qoliber-groups`, `GET /V1/guest-carts/:cartId/qoliber-groups`,
  `GET /V1/orders/:orderId/qoliber-groups`; `qoliber_group_key` on cart items and
  `qoliber_group_key`/`qoliber_group_label` on order items.
- Multishipping is blocked on websites where grouping is enabled (a grouped cart always checks out as one order).
- Delivery per seller: configuration group "Delivery per seller", seller shipping rules (admin
  grid/form, repository, validation), carrier policy with per-website rules fingerprint, aggregate carrier
  `qoliber_split` declared.
- Per-seller delivery eligibility: one decision (`EligibilityChecker`) on whether a quote ships per seller, with the
  sellers that ship physical items.
- Per-seller rates from the store's carriers (each seller priced as if the cart held only its items), free-delivery
  thresholds, per-request memo, carrier failures isolated per seller; `@api` DTOs `GroupShippingEstimateInterface` /
  `GroupShippingOptionInterface`. Requires `magento/module-directory`.
- Aggregate shipping method `qoliber_split_qoliber_split`: native totals (tax, shipping discounts, currency, payment,
  order) from the sum of the per-seller choices; offered only for a complete, still valid selection; per-seller
  breakdown of the native shipping amounts (exact allocation).
- Per-seller selection through native shipping-information (`extension_attributes.qoliber_group_shipping`): validated
  against fresh rates, stored as JSON v1 (`quote.qoliber_shipping_selection`) under the cart lock with generation and
  revision; placement guard (`QOLIBER_SHIPPING_*` error codes in `parameters.code`); client revision via
  `paymentMethod.extension_attributes.qoliber_shipping_revision`.
- Per-seller shipping allocation stored with each split order (`sales_order.qoliber_shipping_allocation`, JSON v1,
  immutable), REST read via the order extension attribute (ACL `Qoliber_CartSplitter::order_allocation_view`) and the
  order groups' `shipping`; event `qoliber_cart_splitter_shipping_allocation_created`; one order per cart
  (`QOLIBER_ORDER_ALREADY_PLACED`).
- REST: estimate, state and selection for customer (`mine`) and guest carts; seller shipping rule CRUD and search
  (`Qoliber_CartSplitter::shipping_rules`).
- Luma checkout: delivery options per seller on the shipping step (debounced estimates, newest answer only, blocked
  "Next" with focus and messages, preselect of a single option, accessible names and live updates), the choice saved
  through native shipping-information, per-seller lines in the order summary, the revision on Place Order and a
  review of the shipping step when the choice changed (other tab, coupon); `checkoutConfig.qoliberGroupShipping`;
  express-checkout shortcuts hidden for carts that ship per seller (cart page, checkout, mini cart). Requires
  `magento/module-sales-rule`.
- Cart page: "Delivery is calculated per seller at checkout." instead of the estimator for carts that ship per
  seller; free-delivery progress per seller in the cart headers and the mini cart (`cart` section
  `qoliber_groups[].free_delivery`); REST cart groups `extension_attributes.shipping`; the per-seller state carries
  free-delivery figures before an address is entered.
- Admin order view "Shipping by seller" (ACL `Qoliber_CartSplitter::order_allocation_view`): per seller the stored
  method, fee, tax and discount, items with ordered / shipped / remaining quantities and a shipment status; footer
  totals with a reconciliation warning; "Ship this group" opens the native New Shipment form with that seller's
  remaining quantities (core and Inventory shipment providers; in Inventory's multi-source mode its Source Selection
  page lists only that seller's items). Customer order view and New Order e-mail list
  "Delivery per seller". Fulfilment stays native: one order, partial shipments per seller, no per-seller refund.
- `ViewModel\GroupShipping` for view-layer integrations (state, codes per seller, the shared write path, what blocks
  the step, price display, summary breakdown, review notice); admin system message while Hyvä Checkout runs without
  `qoliber/cart-splitter-hyva-checkout` and delivery per seller is enabled.
- Translations: en_US, pl_PL.

#### Performance
- Grouping adds at most 2 SQL statements per request to the cart page, the cart section, REST cart items and the
  GraphQL cart (100 lines / 20 sellers); cart page p95 within 10 % of grouping off.

### Qoliber_CartSplitterGraphQl

#### Added
- `Cart.qoliber_groups` (`QoliberCartGroup`: key, label, is_other, position, native cart items, counts and
  `QoliberGroupPrices` in the cart currency) and `CartItemInterface.qoliber_group_key`.
- `CustomerOrder.qoliber_groups` (`QoliberOrderGroup`, from the order snapshot) and
  `OrderItemInterface.qoliber_group_key` / `qoliber_group_label`.
- Delivery per seller (CS-208): `Cart.qoliber_split_shipping` (`QoliberSplitShipping`), `QoliberCartGroup.shipping`
  (`QoliberGroupShipping` with native `AvailableShippingMethod` / `SelectedShippingMethod`, `QoliberFreeDelivery`),
  mutation `setQoliberGroupShippingMethodsOnCart`, `PlaceOrderInput.qoliber_shipping_revision`,
  `QoliberOrderGroup.shipping` (`QoliberOrderGroupShipping`, from the order's allocation).
- Errors of delivery per seller carry `extensions.category` `graphql-qoliber-<code>`, also through native
  `placeOrder`.
- Native `setShippingMethodsOnCart` on carts that ship per seller accepts only the aggregate method with a complete
  choice.
- Translations: en_US, pl_PL.

### Qoliber_CartSplitterHyva

#### Added
- Hyvä cart page seller headers (Tailwind) on the theme's own cart form; Hyvä cart drawer grouped by seller
  (drift-guarded drawer template, CSP-safe Alpine extension of the theme's `initCartDrawer`).
- Hyvä My Account order view and print seller headers.
- Tailwind sources for Hyvä 1.3 (Tailwind 3 `tailwind.config.js`) and 1.4+ (Tailwind 4, registered through
  `qoliber/hyva-module-registration`).
- Hyvä cart page: "Delivery is calculated per seller at checkout." instead of the estimator for carts that ship per
  seller; free-delivery progress under the seller headers and in the cart drawer (CS-211).
- Hyvä My Account order view: "Delivery per seller" (seller, method, fee) for orders placed with delivery per seller
  (CS-212). Requires `magento/module-sales`.
- Translations: en_US, pl_PL.

#### Compatibility
- Requires `hyva-themes/magento2-theme-module` 1.5.3 or newer: the drawer template is a drift-guarded copy of
  `Hyva/default-csp` 1.5.4.

### Qoliber_CartSplitterHyvaCheckout

#### Added
- Delivery per seller on the Hyvä Checkout shipping step (Magewire `GroupShippingMethods`): one fieldset per seller,
  the choice stored through the base module once every seller has one, evaluation that blocks while a seller has no
  choice or cannot deliver, a server check of the stored choice before navigating.
- Order summary breakdown and per-tab revision guard at Place Order (Magewire `GroupedSummary`).
- The native method list yields for carts that ship per seller (template switch, evaluation plugin).
- Translations: en_US, pl_PL.
