# Gewicht und Maße im Frontend anzeigen lassen

**URL:** <https://forum.shopware.com/t/gewicht-und-masse-im-frontend-anzeigen-lassen/27689>\
**Category:** Themes & Design\
**Created:** [28. Mai 2015 um 10:48 UTC](https://forum.shopware.com/t/gewicht-und-masse-im-frontend-anzeigen-lassen/27689 "2015-05-28T10:48:47Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grafik-Artist](https://avatars.discourse-cdn.com/v4/letter/g/5daacb/32.png) [@Grafik-Artist](https://forum.shopware.com/u/Grafik-Artist)\
**Post date:** [28. Mai 2015 um 10:48 UTC](https://forum.shopware.com/t/gewicht-und-masse-im-frontend-anzeigen-lassen/27689/1 "2015-05-28T10:48:47Z")

</div>

Ich muss die Frage noch mal aufwerfen da bisher keine Lösung gab. Wie kann ich im Responsiven Thema von Shopware 5 das im Backend/Artikel eingegebene Gewichtund die Maße im Frontend auf der Detail Seite ausgeben lassen. Bei Shopware 4 ging das im emotion-Template über die Datei data.tpl im Ordner Detail. Aber bei Shopware 5 geht das nicht .Warum? M.Koschitzki

---

<div class="post-metadata">

**Author:** ![metra](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@metra](https://forum.shopware.com/u/metra)\
**Post date:** [15. Juni 2015 um 15:04 UTC](https://forum.shopware.com/t/gewicht-und-masse-im-frontend-anzeigen-lassen/27689/2 "2015-06-15T15:04:06Z")

</div>

Hallo, ich denke über /shopware/themes/Frontend/Bare/frontend/detail/index.tpl Da würde ich es zumindest gerne ab Zeile 222 {\* Product - Base information \*} gerne einfügen. Kann mir hier jemand helfen wie man das abwandeln kann das Gewicht: 10 dort steht: ??? 😉 danke. [code] {\* Product SKU \*} {block name=‘frontend\_detail\_data\_ordernumber’}

- {\* Product SKU - Label \*} {block name=‘frontend\_detail\_data\_ordernumber\_label’} **{s name=“DetailDataId” namespace=“frontend/detail/data”}{/s}** {/block} {\* Product SKU - Content \*} {block name=‘frontend\_detail\_data\_ordernumber\_content’} {$sArticle.ordernumber} {/block}  
{/block} [/code]

---

<div class="post-metadata">

**Author:** ![metra](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@metra](https://forum.shopware.com/u/metra)\
**Post date:** [15. Juni 2015 um 15:11 UTC](https://forum.shopware.com/t/gewicht-und-masse-im-frontend-anzeigen-lassen/27689/3 "2015-06-15T15:11:01Z")

</div>

ok… selber rausgefunden. 🙂 [code] {\* Product Gewicht \*} {block name=‘frontend\_detail\_data\_ordernumber’}

- {\* Product Gewicht - Label \*} {block name=‘frontend\_detail\_data\_weight\_label’} **{s name=“weight” namespace=“frontend/detail/data”}{/s}** {/block} {\* Product Gewicht - Content \*} {block name=‘frontend\_detail\_data\_ordernumber\_content’} {$sArticle.weight} {/block}  
{/block[/code] evtl noch die Textbausteine im Backend anpassen. Grüße

---

<div class="post-metadata">

**Author:** ![anna-anna](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@anna-anna](https://forum.shopware.com/u/anna-anna)\
**Post date:** [17. August 2015 um 09:33 UTC](https://forum.shopware.com/t/gewicht-und-masse-im-frontend-anzeigen-lassen/27689/4 "2015-08-17T09:33:14Z")

</div>

[quote=“metra”]ok… selber rausgefunden. 🙂 [code] {\* Product Gewicht \*} {block name=‘frontend\_detail\_data\_ordernumber’}

- {\* Product Gewicht - Label \*} {block name=‘frontend\_detail\_data\_weight\_label’} **{s name=“weight” namespace=“frontend/detail/data”}{/s}** {/block} {\* Product Gewicht - Content \*} {block name=‘frontend\_detail\_data\_ordernumber\_content’} {$sArticle.weight} {/block}  
{/block[/code] evtl noch die Textbausteine im Backend anpassen. Grüße[/quote] Ich habe zuerst so gemacht: `{\* Product Gewicht - Content \*} {block name='frontend\_detail\_data\_ordernumber\_content'} <meta itemprop="productID" content="{$sArticle.articleDetailsID}"> {se name="DetailArticleWeight"}Artikelgewicht:{/se} {$sArticle.weight} kg {/block}`

---

<div class="post-metadata">

**Author:** ![anna-anna](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@anna-anna](https://forum.shopware.com/u/anna-anna)\
**Post date:** [17. August 2015 um 09:34 UTC](https://forum.shopware.com/t/gewicht-und-masse-im-frontend-anzeigen-lassen/27689/5 "2015-08-17T09:34:38Z")

</div>

Gibt es Mögligkeit bei SW 5 Gewicht angaben in Warenkorb anzeigenlassen ? Herzlichen Dank

---

<div class="post-metadata">

**Author:** ![anna-anna](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@anna-anna](https://forum.shopware.com/u/anna-anna)\
**Post date:** [17. August 2015 um 12:14 UTC](https://forum.shopware.com/t/gewicht-und-masse-im-frontend-anzeigen-lassen/27689/6 "2015-08-17T12:14:35Z")

</div>

Oder auch so: [code]{\* Product Gewicht \*} {block name=‚frontend\_detail\_data\_ordernumber\_content‘} {if $sArticle.weight}

- **{se name=„DetailArticleWeight“}Artikelgewicht:{/se}** {$sArticle.weight} kg  
{/if} {/block}[/code] das sieht besser aus.

---

<div class="post-metadata">

**Author:** ![anna-anna](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@anna-anna](https://forum.shopware.com/u/anna-anna)\
**Post date:** [17. August 2015 um 15:57 UTC](https://forum.shopware.com/t/gewicht-und-masse-im-frontend-anzeigen-lassen/27689/7 "2015-08-17T15:57:47Z")

</div>

Gibt es Mögligkeit bei SW 5 Gewicht angaben in Warenkorb anzeigenlassen ? Herzlichen Dank

---

<div class="post-metadata">

**Author:** ![shoppilein](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@shoppilein](https://forum.shopware.com/u/shoppilein)\
**Post date:** [2. August 2016 um 15:26 UTC](https://forum.shopware.com/t/gewicht-und-masse-im-frontend-anzeigen-lassen/27689/8 "2016-08-02T15:26:36Z")

</div>

Ich hol das hier mal nochmal raus. Ich muss auch das Artikelgewicht auf der Detailseite anzeigen lassen. Wenn ich jedoch die Codes von euch probiere, dann sieht das immer wie folgt aus:

&nbsp;

wie muss der Code lauten, damit das Artikelgewicht unter der Artikelnummer angezeigt wird?

das habe ich in der index.tpl stehen:

&nbsp;

{extends file=‘parent:frontend/detail/index.tpl’}  
&nbsp;  
{\* Product Gewicht \*}  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {block name=‘frontend\_detail\_data\_ordernumber\_content’}  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {if $sArticle.weight}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

- 

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp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sp; {/if}  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {/block}

&nbsp;

Danke für eure Hilfe.

&nbsp;

---

<div class="post-metadata">

**Author:** ![shoppilein](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@shoppilein](https://forum.shopware.com/u/shoppilein)\
**Post date:** [5. August 2016 um 06:45 UTC](https://forum.shopware.com/t/gewicht-und-masse-im-frontend-anzeigen-lassen/27689/9 "2016-08-05T06:45:09Z")

</div>

weiß niemand eine Antwort?

---

<div class="post-metadata">

**Author:** ![iLuHa](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/iluha/32/8191_2.png) [@iLuHa](https://forum.shopware.com/u/iLuHa)\
**Post date:** [5. August 2016 um 06:56 UTC](https://forum.shopware.com/t/gewicht-und-masse-im-frontend-anzeigen-lassen/27689/10 "2016-08-05T06:56:01Z")

</div>

Schonmal probiert den Block “frontend\_detail\_data\_ordernumber” zu appenden?

---

<div class="post-metadata">

**Author:** ![shoppilein](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@shoppilein](https://forum.shopware.com/u/shoppilein)\
**Post date:** [5. August 2016 um 07:57 UTC](https://forum.shopware.com/t/gewicht-und-masse-im-frontend-anzeigen-lassen/27689/11 "2016-08-05T07:57:42Z")

</div>

Hallo iLuHa,

was habe ich probiert? 🙂 Ich kenne mich damit leider nicht aus, habe den Code so wie er ist mit auch aus verschiedenen Beiträgen herausgesucht. Man muss doch irgendwo eintragen, dass das Gewicht in der nächste Zeile angezeigt wird oder nicht?

---

<div class="post-metadata">

**Author:** ![iLuHa](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/iluha/32/8191_2.png) [@iLuHa](https://forum.shopware.com/u/iLuHa)\
**Post date:** [5. August 2016 um 08:19 UTC](https://forum.shopware.com/t/gewicht-und-masse-im-frontend-anzeigen-lassen/27689/12 "2016-08-05T08:19:59Z")

</div>

Probier mal folgendes:

Diesen Block nehmen:

```
{* Product SKU *}
{block name='frontend_detail_data_ordernumber'}
    

        {* Product SKU - Label *}
        {block name='frontend_detail_data_ordernumber_label'}
            
                {s name="DetailDataId" namespace="frontend/detail/data"}{/s}
            
        {/block}

        {* Product SKU - Content *}
        {block name='frontend_detail_data_ordernumber_content'}
            
            
                {$sArticle.ordernumber}
            
        {/block}
    
{/block}

```

Und wie folgt erweitern (im eigenen Theme, nicht im Bare)

```
{block name='frontend_detail_data_ordernumber'}
    {$smarty.block.parent}
    

        {* Product Weight - Label *}
        {block name='frontend_detail_data_ordernumber_label'}
            
                {s name="DetailArticleWeight" namespace="frontend/detail/data"}Artikelgewicht{/s}
            
        {/block}

        {* Product Weight - Content *}
        {block name='frontend_detail_data_ordernumber_content'}
            {* Ggf. mit strukturierten Daten nach schema.org erweitern *}
            
                {$sArticle.weight} kg
            
        {/block}
    
{/block}

```

Du hast bei dir durch die Änderung die Ausgabe der Artikelnummer überschrieben 😉  
Deshalb wird es in der selben Zeile angezeigt.

---

<div class="post-metadata">

**Author:** ![shoppilein](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@shoppilein](https://forum.shopware.com/u/shoppilein)\
**Post date:** [5. August 2016 um 08:56 UTC](https://forum.shopware.com/t/gewicht-und-masse-im-frontend-anzeigen-lassen/27689/13 "2016-08-05T08:56:58Z")

</div>

Hat funktioniert!! Super, danke dir vielmals!! 🙂

---

<div class="post-metadata">

**Author:** ![keinplanmehr](https://avatars.discourse-cdn.com/v4/letter/k/54ee81/32.png) [@keinplanmehr](https://forum.shopware.com/u/keinplanmehr)\
**Post date:** [3. April 2020 um 18:46 UTC](https://forum.shopware.com/t/gewicht-und-masse-im-frontend-anzeigen-lassen/27689/14 "2020-04-03T18:46:51Z")

</div>

Halli Hallo, ich habe leider genau das gleiche Problem. ich möchte die Maße der Produkte unter der Artikelnummer angezigt bekommen. Kann mir Jemand erklären, wie ich das am Besten hinbekomme? Hier geht es ja mehr ums Gewicht?

---

<div class="post-metadata">

**Author:** ![iLuHa](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/iluha/32/8191_2.png) [@iLuHa](https://forum.shopware.com/u/iLuHa)\
**Post date:** [6. April 2020 um 14:38 UTC](https://forum.shopware.com/t/gewicht-und-masse-im-frontend-anzeigen-lassen/27689/15 "2020-04-06T14:38:51Z")

</div>

Im Prinzip wie weiter oben erklärt, das Theme erweitern.  
Nur das {$sArticle.weight} durch den gewünschten Wert ersetzen (und das Label natürlich auch entsprechend anpassen).

Die folgenden:

- $sArticle.width
- $sArticle.height
- $sArticle.length

sollten funktionieren. Je nachdem was gewünscht ist.
