# Preisangabeverordnung vs. Google Shooping Feed

**URL:** <https://forum.shopware.com/t/preisangabeverordnung-vs-google-shooping-feed/59059>\
**Category:** Programmierung\
**Created:** [12. April 2019 um 14:58 UTC](https://forum.shopware.com/t/preisangabeverordnung-vs-google-shooping-feed/59059 "2019-04-12T14:58:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![m23](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/m23/32/13275_2.png) [@m23](https://forum.shopware.com/u/m23)\
**Post date:** [12. April 2019 um 14:58 UTC](https://forum.shopware.com/t/preisangabeverordnung-vs-google-shooping-feed/59059/1 "2019-04-12T14:58:26Z")

</div>

Hallo,

gemäß der Preisangabenverordnung müssen Grundpreise im Feed übergeben werden. Sprich, wenn jemand ein 100 g eines Produktes&nbsp;verkauft, muss auch der Grundpreis für ein ganzes Kilo übergeben werden.

Wie kann ich das in Shopware umsetzen für den normalen Googleshopping txt-Export (Marketing -\> Produktexporte) mit Kopfzeile und Template?

Vielen Dank für jeden Tipp! Stichwort unit\_pricing\_measure [Maß\_für\_Grundpreis] und unit\_​pricing\_​base\_​measure [Einheitsmaß\_​für\_​Grundpreis]?

---

<div class="post-metadata">

**Author:** ![mutabor](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/mutabor/32/16707_2.png) [@mutabor](https://forum.shopware.com/u/mutabor)\
**Post date:** [12. April 2019 um 15:28 UTC](https://forum.shopware.com/t/preisangabeverordnung-vs-google-shooping-feed/59059/2 "2019-04-12T15:28:47Z")

</div>

[https://docs.shopware.com/de/shopware-5-de/marketing-und-einkaufswelten/produktexporte#grundpreisberechnung-grundpreisangabe](https://docs.shopware.com/de/shopware-5-de/marketing-und-einkaufswelten/produktexporte#grundpreisberechnung-grundpreisangabe)

---

<div class="post-metadata">

**Author:** ![m23](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/m23/32/13275_2.png) [@m23](https://forum.shopware.com/u/m23)\
**Post date:** [12. April 2019 um 15:43 UTC](https://forum.shopware.com/t/preisangabeverordnung-vs-google-shooping-feed/59059/3 "2019-04-12T15:43:34Z")

</div>

Das steht ganz unten und werde ich mal testen:

**Kopfzeile:** ` `

```
Grundpreis{#S#}
Inhalt{#S#}

```

**Template:** ` `

```
{if $sArticle.referenceunit && $sArticle.purchaseunit}
{assign var="sArticleReferenceprice" value=$sArticle.price/$sArticle.purchaseunit*$sArticle.referenceunit}
{$sArticle.referenceunit} {$sArticle.unit} = {$sArticleReferenceprice|escape:"number"}{#S#}
{$sArticle.purchaseunit} {$sArticle.unit}{#S#}
{else}
{#S#}{#S#}
{/if}
```

---

<div class="post-metadata">

**Author:** ![mds1972](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@mds1972](https://forum.shopware.com/u/mds1972)\
**Post date:** [7. Mai 2019 um 14:18 UTC](https://forum.shopware.com/t/preisangabeverordnung-vs-google-shooping-feed/59059/4 "2019-05-07T14:18:03Z")

</div>

Hallo,

also mit dem oben genannten Code geht es nicht bei mir.

Ich habe folgendes stehen:

{if $sArticle.referenceunit && $sArticle.purchaseunit}  
{assign var=“sArticleReferenceprice” value=$sArticle.price/$sArticle.purchaseunit\*$sArticle.referenceunit}  
{$sArticle.referenceunit} {$sArticle.unit}{#S#}  
{$sArticle.purchaseunit} {$sArticle.unit}{#S#}  
{else}  
{#S#}{#S#}  
{/if}

Grüße

Matthias
