# Kundennummer in Account-Übersicht ausgeben- aber wie?

**URL:** <https://forum.shopware.com/t/kundennummer-in-account-ubersicht-ausgeben-aber-wie/44030>\
**Category:** Programmierung\
**Created:** [24. Februar 2017 um 14:34 UTC](https://forum.shopware.com/t/kundennummer-in-account-ubersicht-ausgeben-aber-wie/44030 "2017-02-24T14:34:39Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![yvi\_sw](https://avatars.discourse-cdn.com/v4/letter/y/65b543/32.png) [@yvi\_sw](https://forum.shopware.com/u/yvi_sw)\
**Post date:** [24. Februar 2017 um 14:34 UTC](https://forum.shopware.com/t/kundennummer-in-account-ubersicht-ausgeben-aber-wie/44030/1 "2017-02-24T14:34:39Z")

</div>

Kann mir jemand verraten wie der Variablenname der Kundennummer heißt um sie im Kundenkonto auszugeben?

In der index.tpl unter&nbsp;/themes/Frontend/Bare/documents finde ich nur&nbsp;{$User.billing.customernumber|string\_format:"%06d"}

Die funktioniert in der index.tpl unter&nbsp;/themes/Frontend/Bare/frontend/account nicht da steht dann nur so 0000 aus.

Was mache ich falsch?

---

<div class="post-metadata">

**Author:** ![yvi\_sw](https://avatars.discourse-cdn.com/v4/letter/y/65b543/32.png) [@yvi\_sw](https://forum.shopware.com/u/yvi_sw)\
**Post date:** [28. Februar 2017 um 09:38 UTC](https://forum.shopware.com/t/kundennummer-in-account-ubersicht-ausgeben-aber-wie/44030/2 "2017-02-28T09:38:58Z")

</div>

Hat keiner ne Ahnung wie man die Kundennummer abruft. Im backend ist Sie ja zu sehen. Hat das jemand schon geschafft?

---

<div class="post-metadata">

**Author:** ![templeturtle](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/templeturtle/32/22686_2.png) [@templeturtle](https://forum.shopware.com/u/templeturtle)\
**Post date:** [28. Februar 2017 um 09:52 UTC](https://forum.shopware.com/t/kundennummer-in-account-ubersicht-ausgeben-aber-wie/44030/3 "2017-02-28T09:52:21Z")

</div>

Lass’ dir doch mit {$debug} alle Variablen ausgeben und suche danach!

---

<div class="post-metadata">

**Author:** ![yvi\_sw](https://avatars.discourse-cdn.com/v4/letter/y/65b543/32.png) [@yvi\_sw](https://forum.shopware.com/u/yvi_sw)\
**Post date:** [28. Februar 2017 um 10:11 UTC](https://forum.shopware.com/t/kundennummer-in-account-ubersicht-ausgeben-aber-wie/44030/4 "2017-02-28T10:11:56Z")

</div>

ich hab das in der index.tpl unter frontend/bare/account probiert. dann geht die ganze seite nicht mehr. wo kann ich das denn sonst mal probieren. Bin noop was programmierung angeht insbesondere bei shopware. ( T \_ T )

---

<div class="post-metadata">

**Author:** ![artep](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@artep](https://forum.shopware.com/u/artep)\
**Post date:** [28. Februar 2017 um 10:49 UTC](https://forum.shopware.com/t/kundennummer-in-account-ubersicht-ausgeben-aber-wie/44030/5 "2017-02-28T10:49:01Z")

</div>

Hi,

leg in Deinem Theme einen Ordner account an und dort eine index.tpl. (falls nicht schon vorhanden)

in die index.tpl fügst Du folgendes ein:

{extends file=‘parent:frontend/account/index.tpl’}

{\* Welcome text \*}  
{block name=“frontend\_account\_index\_welcome”}  
&nbsp;&nbsp; &nbsp;

&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{block name=“frontend\_account\_index\_welcome\_headline”}  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;

# {s name=‘AccountHeaderWelcome’}{/s}, {$sUserData.billingaddress.firstname} {$sUserData.billingaddress.lastname}

&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; **Ihre Kundennummer: {$sUserData.additional.user.customernumber}**

&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{/block}

&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{block name=“frontend\_account\_index\_welcome\_content”}  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;

&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;

{s name=‘AccountHeaderInfo’}{/s}

&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;

&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{/block}  
&nbsp;&nbsp; &nbsp;

{/block}

&nbsp;

---

<div class="post-metadata">

**Author:** ![yvi\_sw](https://avatars.discourse-cdn.com/v4/letter/y/65b543/32.png) [@yvi\_sw](https://forum.shopware.com/u/yvi_sw)\
**Post date:** [28. Februar 2017 um 11:54 UTC](https://forum.shopware.com/t/kundennummer-in-account-ubersicht-ausgeben-aber-wie/44030/6 "2017-02-28T11:54:28Z")

</div>

Tausend Dank genau das hab ich gesucht.&nbsp;

Woher weist du das es diese Variable ist bzw. wie kann ich beim nächsten mal sowas besser finden?

&nbsp;

---

<div class="post-metadata">

**Author:** ![artidomo](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@artidomo](https://forum.shopware.com/u/artidomo)\
**Post date:** [29. Dezember 2018 um 21:10 UTC](https://forum.shopware.com/t/kundennummer-in-account-ubersicht-ausgeben-aber-wie/44030/7 "2018-12-29T21:10:59Z")

</div>

klasse, schade, dass einige für solche plugins 35 eur nehmen, 3-5 EUR und ich würde nicht nachdenken…

---

<div class="post-metadata">

**Author:** ![kabathus](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/kabathus/32/10231_2.png) [@kabathus](https://forum.shopware.com/u/kabathus)\
**Post date:** [7. Juni 2022 um 16:51 UTC](https://forum.shopware.com/t/kundennummer-in-account-ubersicht-ausgeben-aber-wie/44030/8 "2022-06-07T16:51:04Z")

</div>

Wer keine Templates anpassen möchte, kann den Textbaustein frontend/account/index AccountHeaderInfo anpassen.

Beispiel: Dies ist Ihr Konto Dashboard, wo Sie die Möglichkeit haben, Ihre letzten Kontoaktivitäten einzusehen.  
Ihre Kundennummer: {$sUserData.additional.user.customernumber}.

---

<div class="post-metadata">

**Author:** ![phil](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/phil/32/13661_2.png) [@phil](https://forum.shopware.com/u/phil)\
**Post date:** [9. Juni 2022 um 05:37 UTC](https://forum.shopware.com/t/kundennummer-in-account-ubersicht-ausgeben-aber-wie/44030/9 "2022-06-09T05:37:47Z")

</div>

Und damit es noch hübscher aussieht, am besten auch noch ein wenig HTML-Formatierung mit rein:

```auto
Dies ist Dein Konto Dashboard, wo Du die Möglichkeit hast, Deine letzten Kontoaktivitäten einzusehen.
<h3>Deine Kundennummer: {$sUserData.additional.user.customernumber}</h3>

```

LG Phil
