---
title: "Feature: #413 - Provide Product Traits"
manual: "Cart"
version: "12.1"
permalink: "https://docs.typo3.org/permalink/extcode/cart:feature-413-provide-product-traits@12.1"
source: "Changelog/9.0/Feature-413-ProvideProductTraits.rst"
rendered: "2026-11-14T23:50:30+00:00"
---

# Feature: #413 - Provide Product Traits {#feature-413-provide-product-traits}

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

## Description {#description}

Products can have several features like categories and tags or files and images
and some more. To ease the domain models in the extcode/cart-books, extcode/cart-events,
and extcode/cart-products the extcode/cart extension provides some Traits.

-   `ExtcodeCartDomainModelProductCategoryTrait`
-   `ExtcodeCartDomainModelProductFileAndImageTrait`
-   `ExtcodeCartDomainModelProductMeasureTrait`
-   `ExtcodeCartDomainModelProductServiceAttributeTrait`
-   `ExtcodeCartDomainModelProductStockTrait`
-   `ExtcodeCartDomainModelProductTagTrait`

## Impact {#impact}

Negative effects are not expected.
The traits can also be used in own product extensions. With the use it is to be made certain that
the `__construct` method is not called and in the class, which uses appropriate Traits then the
ObjectStorages must initialize themselves.
