Combining two money filters in one output

I want to combine those 2 money filters in one output. Is it possible?
{{ product.price | money_without_trailing_zeros }}
{{ product.price | money_with_currency }}

I red somewhere that Multiple filters can be used on one output. They are applied from left to right. So I tried the following output but it doesn’t seem to work. Any help would be appreciated!

{{ product.price | money_with_currency | money_without_trailing_zeros }}

Cheers!

Your first money filter changes is from the cent value to a string with a currency symbol. The second filter won’t be able to run as the cent value is no longer being passed to it.
If you just want to get rid of the “.00” you could attempt something more like this:

{{ product.price | money_with_currency | remove:".00" }}
2 Likes

Yes Thank you this does the trick. But I had to add as well “,00”

{{ product.price | money_with_currency | remove:".00"  | remove:",00" }}

because some currencies display ,00 instead of .00.

Cheers!