htdocs/vendor/magento/module-checkout/view/frontend/templates/success.phtml
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
// @codingStandardsIgnoreFile
?>
<?php /** @var $block \Magento\Checkout\Block\Onepage\Success */ ?>
<div class="checkout-success">
<?php if ($block->getOrderId()):?>
<?php if ($block->getCanViewOrder()) :?>
<p style=" font-size: 19px; font-weight: 700;color: #4F91D0;" ><?= __('Your order number is: %1.', sprintf('<a href="%s" class="order-number" ><strong style="font-weight: 600; color: white; background-color: #4F91D0; font-size: 30px;" >%s</strong></a>', $block->escapeHtml($block->getViewOrderUrl()), $block->escapeHtml($block->getOrderId()))) ?></p>
<?php else :?>
<p><?= __('Your order # is: <span>%1</span>.', $block->escapeHtml($block->getOrderId())) ?></p>
<?php endif;?>
<!-- <p><?= /* @escapeNotVerified */ __('We\'ll email you an order confirmation with details and tracking info.') ?></p>-->
<p>
Enviaremos para você um e-mail de confirmação do seu pedido com detalhes e informações de rastreamento.
Adicione o e-mail <a href="mailto:suporte@suporte.com.br"> suporte@suporte.com.br</a> a no seu livro de endereços e verifique sua pasta de spam caso não receba o e-mail de confirmação do pedido.<br>
Agora é só aguardar a confirmação do seu pagamento. Você receberá um e-mail assim que o seu pagamento for confirmado.<br>
Em caso de dúvidas, entre em contato com o e-mail informado acima ou ligue-nos no <a href="tel:40201702">0000-0000</a> (custo de ligação local).
</p>
<br>
<h2>Status do Pedido</h2>
<!-- <p class="status"> </p> -->
<div id="status_bar">
<img class="status" src="https://d2fqgw7smz4ag9.cloudfront.net/pub/media/wysiwyg/status-1.gif" />
</div>
<h2>Suas Compras</h2>
<?= $block->getProductItem() ?> //This is where I want you to display the purchase you made
<h2>Dados do Envio</h2>
<?= $block->getMethodShipping() ?> //This is where I want you to display the delivery method selected by the user.
<?php endif;?>
<?= $block->getAdditionalInfoHtml() ?>
<div class="actions-toolbar">
<div class="primary">
<a class="action primary continue" href="<?= /* @escapeNotVerified */ $block->getContinueUrl() ?>"><span><?= /* @escapeNotVerified */ __('Continue Shopping') ?></span></a>
</div>
</div>
</div>
htdocs/vendor/magento/module-checkout/Block/Onepage
/* Methods for displaying purchased products and selected shipping method */
public function getProductItem()
{
return 'View my purchase'; //What would the method of displaying a purchase look like?
}
public function getMethodShipping()
{
return 'Selected Shipping Type'; //What would be the method for displaying the selected shipping type?
}
Best Answer
Create module for that don't make changes in core files.
Download Module
You can show all order details by following steps.
Remove from xml which you dont want to display.
create
app\code\Ketan\Module\view\frontend\layout\checkout_onepage_success.xml
create Block file for template
app\code\Ketan\Module\Block\Onepage\Success\Details.php
Create view files which are override from xml files
https://pastebin.com/b0LDaHYu
https://pastebin.com/dL6vCXGQ
https://pastebin.com/9edArjFL