---
title: "Feature: #803 - Add event to export orders in backend module"
manual: "Cart"
version: "main"
permalink: "https://docs.typo3.org/permalink/extcode/cart:feature-803-add-event-to-export-orders-in-backend-module@main"
source: "Changelog/12.2/Feature-803-AddEventToExportOrdersInBackendModule.rst"
rendered: "2026-11-17T20:48:12+00:00"
---

# Feature: #803 - Add event to export orders in backend module {#feature-803-add-event-to-export-orders-in-backend-module}

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

## Description {#description}

The `exportAction` of the backend `OrderController` dispatches the new
`ExtcodeCartEventOrderExportEvent`. An EventListener checks whether it is
responsible for the requested format and sets the response with the exported
orders.

The CSV export with the Fluid template `Backend/Order/Order/Export.csv` is
moved to the EventListener
`ExtcodeCartEventListenerOrderExportFluidTemplate`. It renders the
template `Backend/Order/Order/Export.<format>` for every format for which the
template exists in the template root paths of the backend module.

Custom EventListeners can replace the export, e.g. to fetch the orders
directly from the database for a large number of orders, or add an export in
another format like XML. The button for another format can be added with the
`ExtcodeCartEventTemplateComponentsModifyButtonBarEvent`.

See [Replace the order export](https://docs.typo3.org/permalink/extcode/cart:replace-order-export@main).

## Impact {#impact}

No impact is expected. The Fluid template is still used by default, custom
templates in the template root paths of the backend module are used as before.
