# Google Shopping Grundpreisberechnung

**URL:** https://forum.shopware.com/t/google-shopping-grundpreisberechnung/52373
**Category:** Allgemein
**Created:** [13. April 2018 um 19:36 UTC](https://forum.shopware.com/t/google-shopping-grundpreisberechnung/52373 "2018-04-13T19:36:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![livaro2014](https://avatars.discourse-cdn.com/v4/letter/l/439d5e/32.png) [@livaro2014](https://forum.shopware.com/u/livaro2014)
#### Post date: [13. April 2018 um 19:36 UTC](https://forum.shopware.com/t/google-shopping-grundpreisberechnung/52373/1 "2018-04-13T19:36:56Z")

</div>

Hallo,

ich habe in meinem Export für die Grundpreisberechnung das hier hinterlegt:&nbsp;{$sArticle.referenceunit|escape}{$sArticle.unit|replace:“Stck.”:“ct”|escape}{#S#}

Damit wird mir dann zum Beispiel 100 g ausgegeben. Bei manchen Artikel habe ich allerdings 1000 g.

Das wiederum mag google nicht, hier müsste 1 kg exportiert werden, also beim Export aus dem 1000 g = 1 kg gemacht werden.

Wie kann ich das umbauen?

Vielen Dank

---

<div class="post-metadata">

### Author: ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)
#### Post date: [13. April 2018 um 20:53 UTC](https://forum.shopware.com/t/google-shopping-grundpreisberechnung/52373/2 "2018-04-13T20:53:53Z")

</div>

So Sachen wie if else schon probiert?&nbsp;Nur als Idee, keine Ahnung ob die Felder richtig sind.

```
{if $sArticle.unit eq "g" and $sArticle.referenceunit gt "1000"}... kg{else}standardausgabe{/if}

```

&nbsp;
