# Button-Lösung und Smarty

**URL:** https://forum.shopware.com/t/button-losung-und-smarty/7873
**Category:** Shopware 3.5
**Tags:** templates--design
**Created:** [29. Juli 2012 um 12:45 UTC](https://forum.shopware.com/t/button-losung-und-smarty/7873 "2012-07-29T12:45:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![XXXXXX](https://avatars.discourse-cdn.com/v4/letter/x/f475e1/32.png) [@XXXXXX](https://forum.shopware.com/u/XXXXXX)
#### Post date: [29. Juli 2012 um 12:45 UTC](https://forum.shopware.com/t/button-losung-und-smarty/7873/1 "2012-07-29T12:45:31Z")

</div>

Hallo, wenn man im Plugin den Grundpreis angezeigt haben möchte wie muss der Code lauten? Ich habe folgenden Code eingegeben: {if $sBasketItem.additional\_details.referenceprice|currency}{$sBasketItem.additional\_details.referenceprice|currency}/{$sBasketItem.additional\_details.sUnit.unit}  
 {/if}{if $sBasketItem.additional\_details.properties}{$sBasketItem.additional\_details.properties}{else}{if $sBasketItem.additional\_details.description}{$sBasketItem.additional\_details.description}{else}{$sBasketItem.additional\_details.description\_long|strip\_tags|truncate:50}{/if}{/if}[/code] Nur werden jetzt bei Produkten, die keine Grundpreis haben 0.00 @ angezeigt. Wie muss es richtig lauten? Vielen Dank. Viele Grüße Rainer

---

<div class="post-metadata">

### Author: ![tschersich](https://avatars.discourse-cdn.com/v4/letter/t/a9adbd/32.png) [@tschersich](https://forum.shopware.com/u/tschersich)
#### Post date: [29. Juli 2012 um 13:48 UTC](https://forum.shopware.com/t/button-losung-und-smarty/7873/2 "2012-07-29T13:48:29Z")

</div>

{if $sBasketItem.additional\_details.referenceprice}{$sBasketItem.additional\_details.purchaseunit}{$sBasketItem.additional\_details.sUnit.unit} ({$sBasketItem.additional\_details.referenceprice|currency} / {$sBasketItem.additional\_details.referenceunit}{$sBasketItem.additional\_details.sUnit.unit})\*{/if} Das funktioniert auf jeden Fall auf meinem Testsystem.

---

<div class="post-metadata">

### Author: ![XXXXXX](https://avatars.discourse-cdn.com/v4/letter/x/f475e1/32.png) [@XXXXXX](https://forum.shopware.com/u/XXXXXX)
#### Post date: [29. Juli 2012 um 14:03 UTC](https://forum.shopware.com/t/button-losung-und-smarty/7873/3 "2012-07-29T14:03:01Z")

</div>

Vielen Dank. Funktioniert! Viele Grüße Rainer
