Describe your bug or feature request.

We identified several issues with this View and settled on the following plan for its reconfiguration:

  1. The “Actions” column should be removed.
  2. A SKU div with a smaller / gray font (as on the order item modal) should be included beneath the order item label if the referenced purchasable entity has a SKU.
  3. Additionally, beneath that we should have the operations links, pipe separated or others: one for edit, that opens the edit modal, and one for delete that opens the delete modal. These operations links should only appear on the admin view page, not the user view page.
  4. By turning the order item label row into a multi-column row, we need to set the vertical align for rows in this View to “top” so we have an easy scan line across it.
  5. This column should be set to essentially a 99% width, which will require accommodations in other columns to preserve whitespace.
  6. The unit price and quantity columns should then be center aligned, while the total price column should be right aligned.
  7. The order total area handler should be fixed - potentially by deriving the order ID from the order items passed into the contextual filter whenever the order ID on all items matches. We should then place that in here instead of embedding it as a field in the template beneath the table card.

The end result should resemble this, though note that I revised the proposed “remove” operation in the mockup to “delete” above to better match the confirmation form:

Order items desired

Issue fork commerce-3568748

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

jsacksick created an issue. See original summary.

jsacksick’s picture

Issue summary: View changes
jsacksick’s picture

StatusFileSize
new41.61 KB

Current UI with the changes from the MR:
Order items table - Current UI

  • jsacksick committed 9cc7541f on 3.x
    feat: #3568748 Reconfigure the order items formatter to better match the...
jsacksick’s picture

Status: Active » 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.