Problem/Motivation

Customer Service Representatives (CSRs) currently face workflow interruptions when updating shipping information for orders. The current system forces CSRs to navigate away from the order view to modify shipping details, breaking their natural flow and wasting time on navigation instead of customer problem-solving.

Steps to reproduce

  • Navigate to an order view page as a CSR
  • Attempt to modify shipping information
  • Notice that editing requires navigating away from the current page
  • Experience workflow disruption and time loss

Proposed resolution

Add an edit button directly within the shipping information block on the order view that triggers an modal for immediate shipping updates. This eliminates unnecessary navigation and keeps CSRs in context.

Remaining tasks

  • Add edit button to shipping information section on order view
  • Implement shipping information modal functionality
  • Include all shipping fields (address, method, special instructions)
  • Add save functionality with immediate order updates
  • Ensure modal dismisses after successful update
  • Display updated shipping details instantly in order view
  • Implement proper error messaging for validation failures
  • Add shipping cost recalculation when address changes impact pricing
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

tbkot created an issue. See original summary.

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

jsacksick’s picture

Status: Active » Needs work

@tbkot: I've pushed several changes to the MR but there is still room for improvement:

  1. Can we leverage the Commerce component introduced in this commit? https://git.drupalcode.org/project/commerce/-/commit/b26d4e59323809efb6df3f65b383ae1af21067e0
  2. There is no need to display the panel (and numbers at the bottom if there is a single shipment).
  3. Can we rename the button to "Add another shipment" in case there is already one shipment?
  4. We don't have handling to display "locked" in case the order is completed and disallow editing shipments.
  5. Reported in the Commerce queue, but we should find a way for Commerce to still support Commerce shipping 2.x and support both "shipping_information" and "shipments".
jsacksick’s picture

Title: Shipping information field formatter » Impement shipping information edit modal
Issue summary: View changes
Status: Needs work » Needs review
jsacksick’s picture

We can now remove the applied patch from the composer.json as it got committed.

This patch is 95% ready, good job. Feedbacks were provided internally.

jsacksick’s picture

Title: Impement shipping information edit modal » Implement shipping information edit modal

  • jsacksick committed fdd42136 on 3.x authored by tbkot
    [#3550156] feat: Implement shipping information edit modal.
    
    By: tbkot...
jsacksick’s picture

Status: Needs review » Fixed

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.