# How can I show discount without decimal values?

**URL:** <https://forum.shopware.com/t/how-can-i-show-discount-without-decimal-values/97880>\
**Category:** Shopware 6 (English)\
**Created:** [6. Januar 2023 um 10:56 UTC](https://forum.shopware.com/t/how-can-i-show-discount-without-decimal-values/97880 "2023-01-06T10:56:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![martha.weit](https://avatars.discourse-cdn.com/v4/letter/m/ecb155/32.png) [@martha.weit](https://forum.shopware.com/u/martha.weit)\
**Post date:** [6. Januar 2023 um 10:56 UTC](https://forum.shopware.com/t/how-can-i-show-discount-without-decimal-values/97880/1 "2023-01-06T10:56:52Z")

</div>

Hallo.  
We are using shopware 6 with jtl wawi connector  
When ever we provide an product on sale it shows to our customers that 26.74 % sale but we want them to show rounded amount without decimal like 26% or 27 %  
how can we do it in shopware is there any plugin who can help with this ?  
or any possibility with out plugin.

---

<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:** [6. Januar 2023 um 11:31 UTC](https://forum.shopware.com/t/how-can-i-show-discount-without-decimal-values/97880/2 "2023-01-06T11:31:36Z")

</div>

Edit the template file and use twig’s round function. You need the Custom Template Plugin or a own plugin for that.

---

<div class="post-metadata">

**Author:** ![martha.weit](https://avatars.discourse-cdn.com/v4/letter/m/ecb155/32.png) [@martha.weit](https://forum.shopware.com/u/martha.weit)\
**Post date:** [6. Januar 2023 um 13:40 UTC](https://forum.shopware.com/t/how-can-i-show-discount-without-decimal-values/97880/3 "2023-01-06T13:40:42Z")

</div>

> [@Max\_Shop](#):
>
> file and

But I am trying not possible to edit template file.  
is there any other possibility

---

<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:** [6. Januar 2023 um 15:44 UTC](https://forum.shopware.com/t/how-can-i-show-discount-without-decimal-values/97880/4 "2023-01-06T15:44:27Z")

</div>

Not to my knowledge.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/2/9/29c7587ba660f00e4995d1743162782e5d6d8653.svg) [@system](https://forum.shopware.com/u/system)\
**Post date:** [30. April 2024 um 18:18 UTC](https://forum.shopware.com/t/how-can-i-show-discount-without-decimal-values/97880/5 "2024-04-30T18:18:14Z")

</div>

Dieses Thema wurde automatisch 30 Tage nach der letzten Antwort geschlossen. Es sind keine neuen Antworten mehr erlaubt.
