# Preisberechnung, Aufschlag

**URL:** <https://forum.shopware.com/t/preisberechnung-aufschlag/101739>\
**Category:** Shopware 6 (German)\
**Created:** [30. Oktober 2023 um 13:52 UTC](https://forum.shopware.com/t/preisberechnung-aufschlag/101739 "2023-10-30T13:52:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![flundi81](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/flundi81/32/24725_2.png) [@flundi81](https://forum.shopware.com/u/flundi81)\
**Post date:** [30. Oktober 2023 um 13:52 UTC](https://forum.shopware.com/t/preisberechnung-aufschlag/101739/1 "2023-10-30T13:52:28Z")

</div>

Hallo,

wie kann ich in einem Vergleichsportal einen Preisaufschlag für {{price.unitPrice}} machen?  
Dachte ich könnte einfach \*1.06 oder \*1,06 anhängen, funktioniert aber leider nicht.

{{ price.unitPrice|format\_number({multiplier: ‚2‘}) }} funktioniert  
{{ price.unitPrice|format\_number({multiplier: ‚1,06‘}) }} funktioniert nicht  
{{ price.unitPrice|format\_number({multiplier: ‚1.06‘}) }} funktioniert nicht

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [31. Oktober 2023 um 14:19 UTC](https://forum.shopware.com/t/preisberechnung-aufschlag/101739/2 "2023-10-31T14:19:54Z")

</div>

Möchtest du eine Float mit einem String multiplizieren? Ich glaube, dass passiert in deinem Code. Versuche mal beim multiplier die Anführungszeichen weg zu lassen.

> **[format\_number - Documentation - Twig - The flexible, fast, and secure PHP...](https://twig.symfony.com/doc/3.x/filters/format_number.html)**
>
> Twig - The flexible, fast, and secure template engine for PHP

> **[Twig for Template Designers - Documentation - Twig - The flexible, fast, and...](https://twig.symfony.com/doc/3.x/templates.html#math)**
>
> Twig - The flexible, fast, and secure template engine for PHP
