3
Answers
Vote up!
0
Vote down!

Use different View on order for admins and customers

When viewing an order, i.e. for example:

admin/commerce/orders/123

the view "commerce_line_item_table" is used to display the line items. That same view is used to display the line items to the customer on for example:

user/1/orders/123

Is it possible to use different views or different view displays for these? The reason is that the first one can be very useful for administrators to display for example stock level of order time or add a link to the product edit page. These are not useful for the end customer.

So - is this possible?

Asked by: AdamGerthel
on October 8, 2013

3 Answers

Vote up!
1
Vote down!

Ah, I found it. I can use different display modes for the order entity (at admin/commerce/config/order/display)

Answer by: AdamGerthel
Posted: Oct 8, 2013
Vote up!
0
Vote down!

Hello
That page mostly consists of blocks, so you can create custom ones and display them depending on user's role or display only on "admin/commerce/orders/*" page
If you want to alter an existing block, you can clone it and set up 2 different blocks, each for customer and admin

Answer by: malovanets
Posted: Oct 8, 2013
Vote up!
0
Vote down!

Ok, so you mean I should override the page and use context/panels to display blocks of my own choosing?

Answer by: AdamGerthel
Posted: Oct 8, 2013