# Streichpreis im Google Shopping Feed

**URL:** https://forum.shopware.com/t/streichpreis-im-google-shopping-feed/94905
**Category:** Programmierung
**Created:** [21. Juni 2022 um 10:01 UTC](https://forum.shopware.com/t/streichpreis-im-google-shopping-feed/94905 "2022-06-21T10:01:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![kyote](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@kyote](https://forum.shopware.com/u/kyote)
#### Post date: [21. Juni 2022 um 10:01 UTC](https://forum.shopware.com/t/streichpreis-im-google-shopping-feed/94905/1 "2022-06-21T10:01:29Z")

</div>

Bekommt man den Streichpreis irgendwie in den XML Feed für Google Shopping?  
Und wenn ja, wie?

---

<div class="post-metadata">

### Author: ![kyote](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@kyote](https://forum.shopware.com/u/kyote)
#### Post date: [28. Juni 2022 um 07:35 UTC](https://forum.shopware.com/t/streichpreis-im-google-shopping-feed/94905/2 "2022-06-28T07:35:40Z")

</div>

Falls es noch jemanden interessieren sollte:

```auto
{% if product.calculatedPrice.listPrice.price is defined and product.calculatedPrice.listPrice.price > product.calculatedPrice.unitPrice %}

      <g:price>{{product.calculatedPrice.listPrice.price|number_format(context.currency.itemRounding.decimals, '.', '')}} {{ context.currency.isoCode }}</g:price> 
      <g:sale_price> {{ product.calculatedPrice.unitPrice|number_format(context.currency.decimalPrecision, '.', '') }} } {{ context.currency.isoCode }}</g:sale_price> 
   
   {%- else -%}
   
      <g:price>{{ product.calculatedPrice.unitPrice|number_format(context.currency.decimalPrecision, '.', '') }} {{ context.currency.isoCode }}</g:price>       
              
{%- endif -%}

```
