# HTML Frage

**URL:** https://forum.shopware.com/t/html-frage/51366
**Category:** International (English Only)
**Tags:** programming
**Created:** [25. Februar 2018 um 20:17 UTC](https://forum.shopware.com/t/html-frage/51366 "2018-02-25T20:17:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![AmunCista](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@AmunCista](https://forum.shopware.com/u/AmunCista)
#### Post date: [25. Februar 2018 um 20:17 UTC](https://forum.shopware.com/t/html-frage/51366/1 "2018-02-25T20:17:10Z")

</div>

Hab mal ne kurze frage an euch.

Wie kann ich per HTML definieren das er vom {$sAmount}&nbsp; 5% abzieht

also wenn da zb als {$sAmount}&nbsp; 1500€ steht  
soll in einer anderen Spalte “75€” stehn.

&nbsp;

&nbsp;

Vielen Dank

---

<div class="post-metadata">

### Author: ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)
#### Post date: [25. Februar 2018 um 20:25 UTC](https://forum.shopware.com/t/html-frage/51366/2 "2018-02-25T20:25:03Z")

</div>

**Mathematisch geht das so** :

5% abziehen: Preis mal 0.95 = 1425€  
5% absolut: Preis mal 0.05 = 75€

**Mit Smarty:**

{$sAmount\*0.95}  
{$sAmount\*0.05}
