---
title: "TypoScript"
manual: "Cart Events"
version: "7.0"
permalink: "https://docs.typo3.org/permalink/extcode/cart-events:typoscript@7.0"
source: "Administrator/Configuration/TypoScript/Index.rst"
rendered: "2026-11-14T23:50:37+00:00"
---

# TypoScript {#typoscript}

The following snippet shows how to set the needed TypoScript parameter by mostly
reusing the parameter that already were set as TypoScript constants format
EXT:cart.

```
plugin.tx_cartevents {
    settings {
        format.currency < plugin.tx_cart.settings.format.currency

        addToCartByAjax = {$plugin.tx_cart.settings.addToCartByAjax}
    }
}

```

-   **Property**

    plugin.tx_cartevents.settings.format.currency

-   **Data type**

    array

-   **Description**

    Configures how prices should be formated in frontend. The ExtcodeCartViewHelpersFormatCurrencyViewHelper use
    this global setting.

-   **Default**

    The TypoScript template copy the setting from settings of the cart extension.

-   **Property**

    plugin.tx_cartevents.settings.addToCartByAjax

-   **Data type**

    int

-   **Description**

    Activates the option to add events via AJAX action. There is no forwarding to the shopping cart page.
    The response can used to display messages or update the MiniCart-Plugin.

-   **Default**

    The TypoScript template use the setting defined by the constant of the cart extension.
