# sGetPromotionById + Artikel-Link und -Name?

**URL:** https://forum.shopware.com/t/sgetpromotionbyid-artikel-link-und-name/30010
**Category:** Programmierung
**Created:** [27. August 2015 um 12:19 UTC](https://forum.shopware.com/t/sgetpromotionbyid-artikel-link-und-name/30010 "2015-08-27T12:19:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![DenKon26](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@DenKon26](https://forum.shopware.com/u/DenKon26)
#### Post date: [27. August 2015 um 12:19 UTC](https://forum.shopware.com/t/sgetpromotionbyid-artikel-link-und-name/30010/1 "2015-08-27T12:19:03Z")

</div>

Hallo! Mit der Methode sGetPromotionById hole ich mir anhand der Artikel-ID alle nötigen infos zu diesem Artikel: `$articles = array(); $articleModule = Shopware()-\>Modules()-\>Articles(); foreach ($docs as $doc) { $id = $doc['id\_s']; $article = $articleModule-\>sGetPromotionById("fix", 0, $id); array\_push($articles, $article); } return $articles;` Wie kriege ich jetzt auch zusätzlich die Artikel-Attribute link und name? Ich brauche diese, damit ich durch meine Infos die Ajax-Suche überschreiben kann.
