Skip to content

Commit daa1c7b

Browse files
author
Vladyslav Shcherbyna
committed
MAGETWO-31966: Empty title for success placed order page - move to layout
1 parent 256fc44 commit daa1c7b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/code/Magento/Checkout/Controller/Onepage/Success.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ public function execute()
2323
//@todo: Refactor it to match CQRS
2424
$this->_view->loadLayout();
2525
$this->_view->getLayout()->initMessages();
26-
$this->_view->getPage()->getConfig()->getTitle()->set(__('Success Page'));
2726
$this->_eventManager->dispatch(
2827
'checkout_onepage_controller_success_action',
2928
['order_ids' => [$session->getLastOrderId()]]

app/code/Magento/Checkout/view/frontend/layout/checkout_onepage_success.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
*/
66
-->
77
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd">
8+
<head>
9+
<title>Success Page</title>
10+
</head>
811
<body>
912
<referenceBlock name="page.main.title">
1013
<block class="Magento\Checkout\Block\Onepage\Success" name="checkout.success.print.button" template="button.phtml"/>

0 commit comments

Comments
 (0)