Problem/Motivation

Parent: #2626952: Decide on default order view UX

This is for the order view that users see when viewing their own orders.

Proposed resolution

  • Provide route /user/{user}/order/{commerce_order}
  • Create commerce_order.user view mode
  • User route uses user view mode
  • Display appropriate fields
  • Provide template for the view mode.

Remaining tasks

Need to make a follow up task for /user/{user}/orders that lists a user's order history.

User interface changes

API changes

Data model changes

Comments

mglaman created an issue. See original summary.

mglaman’s picture

Title: Create the order view for users » Create the order view route and mode for users
mglaman’s picture

Issue summary: View changes
Status: Active » Needs work
StatusFileSize
new4.56 KB

Initial patch. This takes care of first few items. We just need to focus on fields displayed and the template.

vasike’s picture

@mglaman it seems the patch needs some updates
I got 'The "price_default" plugin does not exist.'.

mglaman’s picture

Assigned: Unassigned » mglaman

Wrapping this up. #4, thats because this was rolled before plugin changes

mglaman’s picture

Status: Needs work » Needs review
StatusFileSize
new4.93 KB
mglaman’s picture

+++ b/modules/order/commerce_order.routing.yml
@@ -34,6 +34,19 @@ entity.commerce_order.collection:
+entity.commerce_order.user_view:

Just pushed a tweak. Changed "order" to "orders" so breadcrumbs work.

bojanz’s picture

Status: Needs review » Fixed

Committed, thanks!

  • bojanz committed 01d62ca on 8.x-2.x authored by mglaman
    Issue #2646196 by mglaman: Create the order view route and mode for...

Status: Fixed » Closed (fixed)

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