This page can be reached by visiting Sell -> Orders -> Orders -> View (grid row action)
. It allows the Back Office user to view the details of selected order and edit it. The related code can be found in following locations:
Command
, Query
directories.Adapter
namespace src/Adapter/OrderOnce opened, the page will show following blocks:
This block contains following actions:
href
buttons redirecting to another View order
page).Contains information like customer email
, addresses
, orders count
, total spent sum
. Click the View full details
link to see more information about the customer (it redirects to Customers -> Customers -> View customer
page). This block also allows following actions:
Customers -> Addresses -> Edit
page inside an iframe
using the Lite display
mode of the Back Office). See OrderController::changeCustomerAddressAction.Customer->note
). See CustomerController::setPrivateNoteAction.Contains a list of ordered products and prices summary. The list is rendered using javascript ajax
by calling OrderController::getProductsListAction in order-view-page.ts. The response of this action is not a json
, but a rendered template.
The following actions can be done in this block (most of these actions are related to OrderDetail - one OrderDetail
is equivalent to one row in a products list):
OrderDetail
for the Order
. See OrderController::addProductAction.OrderDetail
related to the selected product. See OrderController::deleteProductAction.OrderDetail
related to the selected product. See OrderController::updateProductAction.OrderDetail
related to the selected product. See OrderController::updateProductAction.CartRule
and assign it to this order. See OrderController::addCartRuleAction.It is possible to have multiple invoices related to same order, therefore when editing a product or adding a discount you can select which invoice to use.
This block shows order messages (relies on OrderMessage). These messages can be visible for the customer in Front Office order details or can stay hidden - that depends on the checkbox Display to customer
.
Predefined message can be chosen in a dropdown which contains a list of message templates from Sell -> Customer service -> Order messages
. This page can be quickly reached by clicking a shortcut link Configure predefined messages
. Message sending is handled by OrderController::sendMessageAction, while the related javascript code is located in order-view-page-messages-handler.ts.
This block doesn’t have an actual title like others, but let’s just call it “History block” for now - it’s the one containing following tabs:
Order->note
). See OrderController::setInternalNoteAction.Shows a list of payments done for this order and allows manually adding a payment. See OrderController::addPaymentAction.
If order total and payments amount sum differs, then a warning in this block will notify the Back Office user about the difference.