It doesn’t show on the main order view page, only in the add items modal.
Add order item modal

CommentFileSizeAuthor
image-20251204-150808.png224.23 KBkhiminrm

Issue fork commerce-3563176

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

khiminrm created an issue. See original summary.

khiminrm’s picture

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

Let's introduce a new field formatter "QuantityFormatter" (ID: "commerce_quantity").
With a "strip_trailing_zeroes" setting (defaulting to TRUE).
And let's makesure our views use it.

khiminrm’s picture

Status: Active » Needs review
ivnish’s picture

hook_update to existing sites missed?

jsacksick’s picture

@ivnish: Not necessarily... We could, but at the same time, when not absolutely necessary, we aren't necessarily in favor of messing with existing config...
Also, the view could be replaced by another one, there could be multiple views with the "commerce_order_item_table" tag.

  • jsacksick committed 89cf5ed7 on 3.x authored by khiminrm
    feat: #3563176 Remove trailing 0 quantity decimals in the add order...
jsacksick’s picture

Status: Needs review » Fixed

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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.