---
title: "Installation"
manual: "Cart Pdf"
version: "main"
permalink: "https://docs.typo3.org/permalink/extcode/cart-pdf:installation@main"
source: "Administrator/Installation/Index.rst"
rendered: "2026-11-17T08:19:26+00:00"
---

# Installation {#installation}

Depending on your needs you have two options to install the extension.

## Installation using composer {#installation-using-composer}

The recommended way to install the extension is by using [Composer](https://getcomposer.org/).
In your composer based TYPO3 project root, just do

`composer require extcode/cart-pdf`.

## Installation from TYPO3 Extension Repository (TER) {#installation-from-typo3-extension-repository-ter}

An installation from TER is not possible because tecnickcom/tcpdf will be installed as a dependency.
Installing  external packages is not provided by the extension manager.

## Latest version from git {#latest-version-from-git}

You can get the latest version from git by using the git command:

```bash
git clone git@github.com:extcode/cart_pdf.git
```

## Preparation: Include TypoScript {#preparation-include-typoscript}

The extension ships some TypoScript code which needs to be included, either
via site sets or as static TypoScript. Use only one of both ways.

### Include site sets {#include-site-sets}

The extension provides a site set for the general configuration and one for
each type of PDF:

-   **Shopping Cart - Cart Pdf** (`extcode/cart-pdf`)
-   **Shopping Cart - Cart Pdf - Order PDF** (`extcode/cart-pdf-order-pdf`)
-   **Shopping Cart - Cart Pdf - Invoice PDF** (`extcode/cart-pdf-invoice-pdf`)
-   **Shopping Cart - Cart Pdf - Delivery PDF** (`extcode/cart-pdf-delivery-pdf`)

The sets of the PDF types depend on `extcode/cart-pdf`, so it is enough to
add the sets of the required PDF types to the site.

1.  Switch to the **Sites module** and edit the configuration of your site.
1.  Select one or more of **Shopping Cart - Cart Pdf - Order PDF**,
    **Shopping Cart - Cart Pdf - Invoice PDF**,
    **Shopping Cart - Cart Pdf - Delivery PDF** at the field *Sets for this Site*.

Alternatively, add the sets to the `dependencies` in the
`config/sites/<site>/config.yaml` of your site:

**config/sites/\<site>/config.yaml**

```yaml
dependencies:
  - extcode/cart-pdf-order-pdf
  - extcode/cart-pdf-invoice-pdf
  - extcode/cart-pdf-delivery-pdf
```

### Include static TypoScript {#include-static-typoscript}

1.  Switch to the root page of your site.
1.  Switch to the **Template module** and select *Info/Modify*.
1.  Press the link **Edit the whole template record** and switch to the tab *Includes*.
1.  Select **Shopping Cart - Cart Pdf** at the field *Include static (from extensions):*
1.  Select one or more of **Shopping Cart - Cart Pdf - Order PDF**, **Shopping Cart - Cart Pdf - Invoice PDF**, **Shopping Cart - Cart Pdf - Delivery PDF** at the field *Include static (from extensions):*
