Problem/Motivation

Customer Service Representatives (CSRs) experience workflow disruption when modifying order items. The current system requires navigation to the order edit screen for simple tasks like quantity changes or item removal, breaking their flow and slowing down order processing.

Steps to reproduce

  • Navigate to an order view page as a CSR
  • Attempt to modify an order item quantity or remove an item
  • Notice that editing requires navigating to the order edit screen
  • Experience workflow interruption and time loss during order processing

Proposed resolution

Add an edit action to each order item on the main order view that opens a focused modal for quantity changes and item removal. This eliminates unnecessary navigation and keeps CSRs in their workflow context.

Remaining tasks

  • Add edit button/action to order items on order view
  • Implement order item editing modal functionality
  • Display essential item details (product name, unit price, quantity, total)
  • Add real-time price calculations for quantity changes (TBD)
  • Implement "Save Changes" functionality with order refresh
  • Add "Cancel" action that discards changes cleanly
  • Create "Remove Item" functionality with confirmation dialog
  • Implement proper validation for positive numbers only
  • Add error handling for network issues and validation failures
  • Maintain data integrity during concurrent edits

User interface changes

New: Edit action/button for each order item on order view
New: Modal dialog for editing order items with the following elements:

  • Product name display
  • Current unit price display
  • Quantity input field (positive numbers only)
  • Calculated total price with real-time updates
  • "Save Changes" button
  • "Cancel" button
  • "Remove Item" button with confirmation dialog

Issue fork commerce-3545907

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

rinasek created an issue. See original summary.

rinasek’s picture

Issue summary: View changes

tbkot made their first commit to this issue’s fork.

tbkot’s picture

Status: Active » Needs review
jsacksick’s picture

Status: Needs review » Needs work

Marking this as needs work as there are conflicts with the MR.

tbkot’s picture

Status: Needs work » Needs review

  • jsacksick committed 957ea7cf on 3.x authored by tbkot
    [#3545907] feat: Implement Order Item Editing Interface
    
    By: rinasek
    By...
jsacksick’s picture

Status: Needs review » Fixed

Merged, thank your for this Dmytrii.

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

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

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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