A customer on the Easy Digital Download support forums wanted to remove the decimal places after their prices. They suggested that from a psychological perspective, 29 euro looks cheaper than 29.00 euro.

Easy Digital Downloads makes this very easy to do by providing us with the edd_format_amount_decimals filter hook. This code snippet also takes into account prices that have already have decimal places, so only whole number will drop the decimal places.


  • 29.00 will show as 29
  • 29.50 will show as 29.50

Copy and paste the function into your child theme’s functions.php or a plugin.


  1. First of all, thank you for this code.
    There’s one little issue, though. The numbers after the decimal doesn’t get trimmed when I use the Widgets Pack. Any workaround for this?

Comments are closed.