#2757263: Provide workflow transition buttons on order view page will go on order view. We need to template this to resemble the edit form, but immutable.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mglaman created an issue. See original summary.

cornifex’s picture

Based on conversation with mglaman, this should appear similar to order edit. Customer info on right, line-items in main content area, actions at the top of the page.

cornifex’s picture

Assigned: Unassigned » cornifex
bojanz’s picture

The design was defined in #2626952: Decide on default order view UX.

Related issue: #2821909: Send an email when an order is placed (similar templating, same need for a Twig price filter)

mglaman’s picture

Assigned: cornifex » mglaman
Status: Active » Needs review
FileSize
115.4 KB

cornifex got the initial work done and I'm helping wrap it up. The PR is https://github.com/drupalcommerce/commerce/pull/565.

Here's a screengrab of the result

mglaman’s picture

FileSize
119.74 KB

Here's what the view looks like when the order has been placed

mglaman’s picture

bojanz’s picture

Title: Template admin order view » Re-template the admin and user order views
bojanz’s picture

New PR up at https://github.com/drupalcommerce/commerce/pull/574/

Fixed the View tab (needs to be before the Edit tab), synced the date formats (should be "short" like on Edit), added an update hook, merged-in the user order PR.

  • bojanz committed 5fd6298 on 8.x-2.x authored by cornifex
    Issue #2757283 by mglaman, cornifex: Re-template the admin and user...
bojanz’s picture

Status: Needs review » Fixed
FileSize
27.76 KB

Committed the final version. Thanks, everyone!

My latest commit fixes issues in the user template (shipping_information and billing_information were misnamed so they were never printed, added contact email, fixed date formats to be "short"), fixes the order uid field label (Customer instead of Owner).

Attaching a screenshot of the current user order page. Still not happy with it, but we've made progress.

mglaman’s picture

FileSize
46.28 KB

Updated version of order admin view

Status: Fixed » Closed (fixed)

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