# Google Feed condition

**URL:** <https://forum.shopware.com/t/google-feed-condition/91269>\
**Category:** Shopware 6 (German)\
**Created:** [3. November 2021 um 12:19 UTC](https://forum.shopware.com/t/google-feed-condition/91269 "2021-11-03T12:19:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MMagnin](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@MMagnin](https://forum.shopware.com/u/MMagnin)\
**Post date:** [3. November 2021 um 12:19 UTC](https://forum.shopware.com/t/google-feed-condition/91269/1 "2021-11-03T12:19:16Z")

</div>

Wen ich das richtig sehe, so gibt es in der Shopware Datenbank kein Feld für den Artikelzustand neu/gebraucht.  
Meine Idee wäre das setzen von neu oder gebraucht anhand des Titels {{ product.translated.name|escape }}  
Wenn im Titel drinnen steht Occasion dann den \<g:condition\>used\</g:condition\> sonst auf \<g:condition\>new\</g:condition\>  
Kann mir jemand eine codesequienz angeben für eine if abfrage im Google Feed Template in Shopware 6?  
Wenn also im Titel das Wort Occasion vorhanden ist (gross oder klein geschrieben) dann „used“ else „new“  
Die Lösung wäre simpel und sicherlich für viel gut zu gebrauchen
