# Google Produktsuche, wie Template Grundpreis angeben?

**URL:** https://forum.shopware.com/t/google-produktsuche-wie-template-grundpreis-angeben/31361
**Category:** Administration
**Created:** [14. Oktober 2015 um 12:50 UTC](https://forum.shopware.com/t/google-produktsuche-wie-template-grundpreis-angeben/31361 "2015-10-14T12:50:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Tanny](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@Tanny](https://forum.shopware.com/u/Tanny)
#### Post date: [14. Oktober 2015 um 12:50 UTC](https://forum.shopware.com/t/google-produktsuche-wie-template-grundpreis-angeben/31361/1 "2015-10-14T12:50:02Z")

</div>

Hallo Fachwelt, wie muss denn der Code in der Kopfzeile sowie im Template für die Angabe des Grundpreises für Google-Merchant aussehen? Meine Kopfzeile für die Grundpreisangaben: `unit\_pricing\_measure{#S#} unit\_pricing\_base\_measure{#S#}` Und mein 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}` Da meckert Google Merchant rum… Kann mir jemand sagen wie es richtig sein muss? Danke im Voraus. Grüße Michael

---

<div class="post-metadata">

### Author: ![drakon](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/drakon/32/7724_2.png) [@drakon](https://forum.shopware.com/u/drakon)
#### Post date: [14. Oktober 2015 um 13:06 UTC](https://forum.shopware.com/t/google-produktsuche-wie-template-grundpreis-angeben/31361/2 "2015-10-14T13:06:51Z")

</div>

Hallo, das funktioniert: ` {if $sArticle.referenceunit && $sArticle.purchaseunit} {$sArticle.purchaseunit} {$sArticle.unit}{#S#} {$sArticle.referenceunit} {$sArticle.unit}{#S#} {else} {#S#}{#S#} `

---

<div class="post-metadata">

### Author: ![Tanny](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@Tanny](https://forum.shopware.com/u/Tanny)
#### Post date: [14. Oktober 2015 um 13:23 UTC](https://forum.shopware.com/t/google-produktsuche-wie-template-grundpreis-angeben/31361/3 "2015-10-14T13:23:14Z")

</div>

Vielen Dank! 🙂 :thumbup:
