# Undefined index: description / für Zahlung- und Bestellstatis

**URL:** https://forum.shopware.com/t/undefined-index-description-fur-zahlung-und-bestellstatis/59262
**Category:** Programmierung
**Created:** [26. April 2019 um 08:36 UTC](https://forum.shopware.com/t/undefined-index-description-fur-zahlung-und-bestellstatis/59262 "2019-04-26T08:36:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kadis](https://avatars.discourse-cdn.com/v4/letter/k/c57346/32.png) [@kadis](https://forum.shopware.com/u/kadis)
#### Post date: [26. April 2019 um 08:36 UTC](https://forum.shopware.com/t/undefined-index-description-fur-zahlung-und-bestellstatis/59262/1 "2019-04-26T08:36:01Z")

</div>

Hallo,&nbsp;

Ich bekomme diese Fehlermeldung wenn ich die Zahlung- & Bestellstatus abfrage.&nbsp;

Undefined index: **description** in Zeile x

Zeile x =&nbsp;&nbsp;&nbsp; &nbsp;

$paymentStatus = str\_replace($this-\>xmlbreaker, $this-\>xmlcorrect, helper::utf8\_convert(str\_replace(’.’, ‘’, $Order[‘data’][‘paymentStatus’][’ **description** ’])));  
$orderStatus &nbsp; = str\_replace($this-\>xmlbreaker, $this-\>xmlcorrect, helper::utf8\_convert(str\_replace(’.’, ‘’, $Order[‘data’][‘orderStatus’][’ **description** ’])));

Array Ausgabe sieht&nbsp;so aus:&nbsp;

```
  [paymentStatus] => Array
                (
                    [id] => 12
                    [name] => completely_paid
                    [position] => 4
                    [group] => payment
                    [sendMail] => 0
                )

            [orderStatus] => Array
                (
                    [id] => 0
                    [name] => open
                    [position] => 1
                    [group] => state
                    [sendMail] => 1
                )

```

Mit $Order[‘data’][‘paymentStatus’][’ **name** ’] bekomme ich die englische Name von Statis zurück.&nbsp;

Wie frage ich die Description(Offen,Komplett bezahlt, In Bearbeitung etc.) ab?&nbsp;
