Describe your bug or feature request.

When "Strip trailing zeroes after the decimal point." is selected in Manage Display widget the all fraction digits will display on the node. In views it works as expected.

If a bug, provide steps to reproduce it from a clean install.

  1. Configure a currency in /admin/commerce/config/currencies/ with 6 fraction digits.
  2. Add a price field to a content type and turn on "Strip trailing zeroes after the decimal point." in Manage Display widget.
  3. Create a node and enter 10.000100 in the price field and save.
  4. 10.0001 should be the value that appears on the node but it will still display 10.000100
    You can try this with any amount of fraction digits in a currency and it will always show the amount of fraction digits set in the currency's config.
CommentFileSizeAuthor
#4 price-displayed.png23.31 KBjsacksick

Comments

the_glitch created an issue. See original summary.

ivnish’s picture

Version: 3.2.0 » 3.0.x-dev
ivnish’s picture

Version: 3.0.x-dev » 3.x-dev
jsacksick’s picture

Status: Active » Closed (cannot reproduce)
StatusFileSize
new23.31 KB

This works for me, sure you're editing the right view mode?

Price displayed without decimals

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.