---
title: "Integrate a MiniCart"
manual: "Cart"
version: "12.1"
permalink: "https://docs.typo3.org/permalink/extcode/cart:minicart@12.1"
source: "Tutorials/MiniCart/Index.rst"
rendered: "2026-11-14T23:50:30+00:00"
---

# Integrate a MiniCart {#minicart}

*Context:*
MiniCart is the (usually tiny) icon somewhere in the header of all pages which
shows how many items the customer has in the cart and which links the cart
itself.

> [!NOTE]
> The following example will result in a page that is not fully cached.
> To get a fully cached site you would need to get the data via AJAX request.
> Have a look at [`studiomitte/cart-count`](https://packagist.org/packages/studiomitte/cart-count).

**EXT:cartintegration/Configuration/TypoScript/setup.typoscript**

```typoscript
lib.miniCart = COA_INT
lib.miniCart {
  10 = USER_INT
  10 {
    userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
    extensionName = Cart
    pluginName = MiniCart
    vendorName = Extcode
  }
}
```

**EXT:sitepackage/Resources/Partials/Header.html**

```html
<header>
   ...
   <!-- Somewhere in the header of your page -->
   <f:cObject typoscriptObjectPath="lib.miniCart"/>

   ...
<header>
```
