0

i want to show a price as a whole number if the number after decimal is 0 but if the price has any specific number after the decimal then it should display the same price

tried round:1 but didn't work

1 Answers1

0

You can just remove ".00" after the price

{{ product.price | money | remove: '.00' }}

If you will haven't ".00" it will just skip it

Sandrik85
  • 29
  • 2