# Zuletzt angesehene Artikel Smarty Variable ?

**URL:** https://forum.shopware.com/t/zuletzt-angesehene-artikel-smarty-variable/46394
**Category:** Programmierung
**Created:** [19. Juni 2017 um 11:18 UTC](https://forum.shopware.com/t/zuletzt-angesehene-artikel-smarty-variable/46394 "2017-06-19T11:18:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Fensterscheibe](https://avatars.discourse-cdn.com/v4/letter/f/f4b2a3/32.png) [@Fensterscheibe](https://forum.shopware.com/u/Fensterscheibe)
#### Post date: [19. Juni 2017 um 11:18 UTC](https://forum.shopware.com/t/zuletzt-angesehene-artikel-smarty-variable/46394/1 "2017-06-19T11:18:51Z")

</div>

Hallo,

ich möchte die zuletzt angesehenen Artikel nur anzeigen, falls auch zuletzt angesehene Artikel vorhanden sind.

Derzeit wird es jedoch immer angezeigt.&nbsp;

Bisher konnte ich hierzu keine passende Smarty Variable finden.

---

<div class="post-metadata">

### Author: ![derwunner](https://avatars.discourse-cdn.com/v4/letter/d/e5b9ba/32.png) [@derwunner](https://forum.shopware.com/u/derwunner)
#### Post date: [19. Juni 2017 um 12:01 UTC](https://forum.shopware.com/t/zuletzt-angesehene-artikel-smarty-variable/46394/2 "2017-06-19T12:01:22Z")

</div>

Hallo,

&nbsp;

dann hast Du etwas falsch konfiguriert, siehe hier:&nbsp;[shopware/viewed.tpl at 5.2 · shopware/shopware · GitHub](https://github.com/shopware/shopware/blob/5.2/themes/Frontend/Bare/widgets/recommendation/viewed.tpl#L2)

Solche Sachen wie “Ähnliche Produkte”, Cross-Selling etc. sind meistens widgets. Also es lohnt sich zuerst mal die Ordner widgets abzusuchen.

Smarty if Conditions sind exakt wie die in PHP, zumindest laut der Smarty Doku.

&nbsp;

MFG

derwunner
