# Problem mit Google Shopping Feed

**URL:** <https://forum.shopware.com/t/problem-mit-google-shopping-feed/104465>\
**Category:** Shopware 6 (German)\
**Created:** [4. Juli 2024 um 12:09 UTC](https://forum.shopware.com/t/problem-mit-google-shopping-feed/104465 "2024-07-04T12:09:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kochmesser24](https://avatars.discourse-cdn.com/v4/letter/k/e47774/32.png) [@kochmesser24](https://forum.shopware.com/u/kochmesser24)\
**Post date:** [4. Juli 2024 um 12:09 UTC](https://forum.shopware.com/t/problem-mit-google-shopping-feed/104465/1 "2024-07-04T12:09:14Z")

</div>

Hallo,

ich bekommen die folgende Fehlermeldung bei unseren Shopping Feeds und sehe den Fehler nicht.  
Zwar bin ich mir nicht sicher aber ich glaube vor unseren Update von Shopware 6.4 auf 6.5 ging alles.

Fehlermeldung:  
Failed rendering string template using Twig: Failed rendering string template using Twig: Neither the property „decimalPrecision“ nor one of the methods „decimalPrecision()“, „getdecimalPrecision()“/„isdecimalPrecision()“/„hasdecimalPrecision()“ or „\_\_call()“ exist and have public access in class „Shopware\Core\System\Currency\CurrencyEntity“ in „60f7849d13f1fdea2e36043068e53a4e“ at line 26.

Das ist der Feed:  
  
\<g:id\>{{ product.productNumber }}\</g:id\>  
{{ product.translated.name|escape }}  
{{ product.translated.description|escape }}  
\<g:google\_product\_category\>665{# change your Google Shopping category #}\</g:google\_product\_category\>  
\<g:product\_type\>{{ product.categories.first.getBreadCrumb|slice(1)|join(’ \> ')|raw|escape }}\</g:product\_type\>  
{{ seoUrl(‚frontend.detail.page‘, {‚productId‘: product.id}) }}  
\<g:image\_link\>{{ product.cover.media.url }}\</g:image\_link\>  
\<g:condition\>new\</g:condition\>  
\<g:availability\>  
{%- if product.availableStock \>= product.minPurchase and product.deliveryTime -%}  
in\_stock  
{%- elseif product.availableStock \< product.minPurchase and product.deliveryTime and product.restockTime -%}  
preorder  
{%- else -%}  
out\_of\_stock  
{%- endif -%}  
\</g:availability\>  
{% 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 -%}

{% if product.manufacturer.translated.name is defined %}\<g:brand\>{{ product.manufacturer.translated.name|escape }}\</g:brand\>{% endif %}  
\<g:gtin\>{{ product.ean }}\</g:gtin\>  
\<g:mpn\>{{ product.manufacturerNumber }}\</g:mpn\>  
\<g:shipping\>  
\<g:country\>DE\</g:country\>  
\<g:service\>DHL\_DE\</g:service\>  
\<g:price\>{{ 0.00|currency }}{# change your default delivery costs #}\</g:price\>  
\</g:shipping\>

Und Zeile 26 wäre diese:  
\<g:price\>{{ product.calculatedPrice.unitPrice|number\_format(context.currency.decimalPrecision, ‚.‘, ‚‘) }} {{ context.currency.isoCode }}\</g:price\>

Vielleicht kann mir jemand helfen.

Jens

---

<div class="post-metadata">

**Author:** ![kochmesser24](https://avatars.discourse-cdn.com/v4/letter/k/e47774/32.png) [@kochmesser24](https://forum.shopware.com/u/kochmesser24)\
**Post date:** [4. Juli 2024 um 15:29 UTC](https://forum.shopware.com/t/problem-mit-google-shopping-feed/104465/2 "2024-07-04T15:29:07Z")

</div>

Ich konnte das Problem soeben lösen.  
Ich habe

context.currency.decimalPrecision, ‚.‘, ‚‘

durch

context.currency.itemRounding.decimals, ‚.‘, ‚‘

danach ging es wieder.  
Da der letzt Abgleich vor dem Shopware Upgrade erfolgreich war. wird es einen direkten Zusammenhang geben
