---
title: "Deprecation: #836 - Payment and shipping status in the TCA items"
manual: "Cart"
version: "main"
permalink: "https://docs.typo3.org/permalink/extcode/cart:deprecation-836-payment-and-shipping-status-in-the-tca-items@main"
source: "Changelog/12.4/Deprecation-836-OrderStatusInTcaItems.rst"
rendered: "2026-11-20T20:29:02+00:00"
---

# Deprecation: #836 - Payment and shipping status in the TCA items {#deprecation-836-payment-and-shipping-status-in-the-tca-items}

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

## Description {#description}

Until cart 12.3 own payment and shipping status were added to the items of
the status field in the TCA, e.g. by a TCA override:

**EXT:my_extension/Configuration/TCA/Overrides/tx_cart_domain_model_order_payment.php**

```php
$GLOBALS['TCA']['tx_cart_domain_model_order_payment']['columns']['status']['config']['items'][] = [
    'label' => 'LLL:EXT:my_extension/Resources/Private/Language/locallang_db.xlf:payment.status.refunded',
    'value' => 'refunded',
];
```

Since cart 12.4 the status are registered in
`Configuration/OrderStatus.php`, see [Payment and shipping status](https://docs.typo3.org/permalink/extcode/cart:developer-order-status@main). The
items of the status fields of `tx_cart_domain_model_order_payment` and
`tx_cart_domain_model_order_shipping` in the TCA of cart are empty.

Adding status to these items is deprecated and will stop working in cart
13.0.

## Impact {#impact}

Status in the items of the TCA are still used in the backend module, the order
details in the frontend and the TCA. They are added after the registered
status and a deprecation is logged.

Removing or reordering the status of cart by changing these items is not
supported anymore.

## Affected Installations {#affected-installations}

All installations with extensions which add status to the items of
`$GLOBALS['TCA']['tx_cart_domain_model_order_payment']['columns']['status']['config']['items']`
or
`$GLOBALS['TCA']['tx_cart_domain_model_order_shipping']['columns']['status']['config']['items']`.

## Migration {#migration}

Remove the status from the TCA override and register them in
`Configuration/OrderStatus.php` of your extension:

**EXT:my_extension/Configuration/OrderStatus.php**

```php
<?php

use Extcode\Cart\OrderStatus\PaymentStatus;

return [
    'payment' => [
        'refunded' => [
            'label' => 'LLL:EXT:my_extension/Resources/Private/Language/locallang_db.xlf:payment.status.refunded',
            'after' => [PaymentStatus::PAID],
            'before' => [PaymentStatus::CANCELED],
        ],
    ],
];
```
