---
title: "Feature: #593 - Add event to assign own data to view"
manual: "Cart"
version: "12.1"
permalink: "https://docs.typo3.org/permalink/extcode/cart:feature-593-add-event-to-assign-own-data-to-view@12.1"
source: "Changelog/9.1/Feature-593-AddEventToAssignOwnDataToView.rst"
rendered: "2026-11-14T23:50:30+00:00"
---

# Feature: #593 - Add event to assign own data to view {#feature-593-add-event-to-assign-own-data-to-view}

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

## Description {#description}

Adding your own data to plugin templates is not so easy. In order to assign
own data to the view, you need a lib in TypoScript and a f:cObject in the
template with some JavaScript on top.

This `ExtcodeCartEventViewModifyViewEvent` event is dispached in all
actions for which an output is generated via a template. Actions that are
forwarded to another action do not require the event.

An own EventListener can use the methods `getRequest()`, `getSettings()`,
`getView()` to retrieve all the necessary information to assign custom data.
The request object can be used to assign data for specific actions. For example,
saved addresses of a returning logged-in user can be displayed for selection
instead of the form for the billing address.

## Impact {#impact}

No impact is expected.
