# Syntax Error in template

**URL:** https://forum.shopware.com/t/syntax-error-in-template/64713
**Category:** Administration
**Created:** [14. Februar 2020 um 11:25 UTC](https://forum.shopware.com/t/syntax-error-in-template/64713 "2020-02-14T11:25:50Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Albinot](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@Albinot](https://forum.shopware.com/u/Albinot)
#### Post date: [14. Februar 2020 um 11:25 UTC](https://forum.shopware.com/t/syntax-error-in-template/64713/1 "2020-02-14T11:25:50Z")

</div>

Hallo liebe Community

Ich habe Heute unseren Shop von der Version 5.5.1 auf die Version 5.6.4 geupdatet.  
Das hat soweit vorerst gut geklappt, bis ich das Frontend besucht habe.

Im Fronted wird die Startseite, wie auch die Kategorie- und Detailseiten nicht angezeigt.  
Ich gehe davon aus, dass das mit den Artikeln zusammenhängt.

Mir wird aktuell in der Kategorie-Seite folgender Fehler angezeigt:

> Syntax Error in template „/home/albinot1/www/albinot1.myhostpoint.ch/themes/Frontend/Bare/frontend/listing/product-box/product-price-unit.tpl“ on line 3 „{$tooltip = "{snippet name=‚ListingBoxArticleContent‘ namespace=‚frontend/listing/box\_article‘}{if $sArticle.instock \> 0}\<span style="color: green;"\>Lieferzeit: ca. 1-2 Werktage\</span\>“ - Unexpected „color“ in engine/Library/Smarty/sysplugins/smarty\_internal\_templatecompilerbase.php on line 657

Gerne könnt Ihr euch auch kurz die Kategorie anschauen:  
[https://mamm.ch/neu/](https://mamm.ch/neu/)

Hat jemand einen Lösungsvorschlag für dieses Problem?

Vielen Dank im Voraus für eure Hilfe.

---

<div class="post-metadata">

### Author: ![sschreier](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sschreier/32/23296_2.png) [@sschreier](https://forum.shopware.com/u/sschreier)
#### Post date: [14. Februar 2020 um 14:57 UTC](https://forum.shopware.com/t/syntax-error-in-template/64713/2 "2020-02-14T14:57:44Z")

</div>

Hallo,

einfach mal aus dem Textbaustein&nbsp;ListingBoxArticleContent alles rundum color entfernen, das wird ja schließlich bemängelt. Inline - CSS ist eh Mist, sowas gehört in eine eigene LESS - Datei im eigenen Theme.

Grüße

Sebastian

---

<div class="post-metadata">

### Author: ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)
#### Post date: [14. Februar 2020 um 15:06 UTC](https://forum.shopware.com/t/syntax-error-in-template/64713/3 "2020-02-14T15:06:57Z")

</div>

> CSS ist eh Mist, sowas gehört in eine eigene LESS

Hm, da ist eine IF-Abfrage drin. Wie soll das in der LESS gehen?

---

<div class="post-metadata">

### Author: ![sschreier](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sschreier/32/23296_2.png) [@sschreier](https://forum.shopware.com/u/sschreier)
#### Post date: [14. Februar 2020 um 15:23 UTC](https://forum.shopware.com/t/syntax-error-in-template/64713/4 "2020-02-14T15:23:10Z")

</div>

Hallo,

indem man statt Inline-CSS einen span- oder div-Container mit einer eigenen CSS-Klasse nutzt, die man dann in der eigenen LESS - Datei im eigenen Theme entsprechend stylt?! Oder indem man die if - Abfrage ins eigenen Theme „verschiebt“ und über {smarty.block.parent} einen div - Container mit eigener CSS - Klasse drum herum setzt, falls der Fall eintritt?!

Grüße

Sebastian

---

<div class="post-metadata">

### Author: ![Albinot](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@Albinot](https://forum.shopware.com/u/Albinot)
#### Post date: [14. Februar 2020 um 23:55 UTC](https://forum.shopware.com/t/syntax-error-in-template/64713/5 "2020-02-14T23:55:05Z")

</div>

Hallo Sebastian,

das hat wunderbar geklappt - Tausend Dank für deine schnelle Hilfe!!

Liebe Grüsse,

Albinot
