# Hauptkategorie ID eines Artikels ermitteln

**URL:** <https://forum.shopware.com/t/hauptkategorie-id-eines-artikels-ermitteln/18775>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [1. März 2014 um 10:22 UTC](https://forum.shopware.com/t/hauptkategorie-id-eines-artikels-ermitteln/18775 "2014-03-01T10:22:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![onlinesolutions1](https://avatars.discourse-cdn.com/v4/letter/o/67e7ee/32.png) [@onlinesolutions1](https://forum.shopware.com/u/onlinesolutions1)\
**Post date:** [1. März 2014 um 10:22 UTC](https://forum.shopware.com/t/hauptkategorie-id-eines-artikels-ermitteln/18775/1 "2014-03-01T10:22:11Z")

</div>

Liebe Community, Wir integrieren Post Affiliate Pro in Shopware und wir müssen beim Checkout die Hauptkategorie ID eines Artikels an die Software übermitteln. Folgender Code befindet sich in finish.tpl in den custom templates und gibt den Kaufpreis und die Artikel ID jedes Artikels aus, der gekauft wurde: [code] {extends file=‘parent:frontend/checkout/finish.tpl’} {block name=“frontend\_index\_content” append}{/block} [/code] Wir müssen nun noch die ID der Hauptkategorie jedes Artikel der gekauft wird, in der Iteration einbauen, damit auch diese an das Affiliate Porgramm übergeben werden. Wer weiß, wie das geht? Shopware rocks! Danke Euch für Eure Antworten.

---

<div class="post-metadata">

**Author:** ![onlinesolutions1](https://avatars.discourse-cdn.com/v4/letter/o/67e7ee/32.png) [@onlinesolutions1](https://forum.shopware.com/u/onlinesolutions1)\
**Post date:** [21. März 2014 um 21:00 UTC](https://forum.shopware.com/t/hauptkategorie-id-eines-artikels-ermitteln/18775/2 "2014-03-21T21:00:23Z")

</div>

Wenn jemand die Lösung hat, wir bezahlen auch gerne dafür. Schicken Sie uns eine PM.
