---
title: "Feature: #902 - Shipments with lines"
manual: "Cart"
version: "main"
permalink: "https://docs.typo3.org/permalink/extcode/cart:feature-902-shipments-with-lines@main"
source: "Changelog/12.9/Feature-902-OrderShipments.rst"
rendered: "2026-11-25T19:30:36+00:00"
---

# Feature: #902 - Shipments with lines {#feature-902-shipments-with-lines}

See [Issue 902](https://github.com/extcode/cart/issues/902)

## Description {#description}

An order can store several shipments (partial deliveries). This change adds
the data model only; creating shipments, deriving the shipping status of the
order and the backend UI follow in later versions.

-   `tx_cart_domain_model_order_shipment`: order item, status, carrier,
    tracking number, tracking URL, shipped date, note and whether the shipment
    is a replacement for returned products.
-   `tx_cart_domain_model_order_shipment_product`: the products of a shipment,
    the shipped count of an ordered product.

Shipments are no Extbase models. They are only written by services in
database transactions, so integrators cannot change them by accident. The
readonly objects `\Extcode\Cart\Domain\Order\Fulfillment\Shipment` and
`\Extcode\Cart\Domain\Order\Fulfillment\ShipmentProduct` are read and stored by
`\Extcode\Cart\Domain\Order\Fulfillment\ShipmentRepository`. The TCA of both
tables is read only, the shipments are shown in the order item record.

New status (see [Payment and shipping status](https://docs.typo3.org/permalink/extcode/cart:developer-order-status@main)):

-   The new type `shipment` with the status `open`, `in_process`,
    `shipped`, `delivered` and `canceled`
    (`\Extcode\Cart\Domain\Order\Fulfillment\ShipmentStatus`). Extensions
    register further shipment status in `Configuration/OrderStatus.php`.
-   The shipping status `partially_shipped` and `not_required` (no ordered
    product is shippable).

The new feature toggle `cart.orderFulfillment` is disabled by default. It
sets the shipping status `not_required` for orders without shippable
products, see [Feature: #905 - Create shipments and derive the shipping status](https://docs.typo3.org/permalink/extcode/cart:feature-905-create-shipments-and-derive-the-shipping-status@main), and
will enable the backend UI for shipments.

## Impact {#impact}

The database schema has to be updated. Nothing changes for existing orders.

The select of the shipping status in the backend module offers the new status
`partially_shipped` and `not_required`.

`\Extcode\Cart\Domain\Order\Status\ServiceType` has the new case
`Shipment`. Code that matches all cases of the enum has to handle it.
