How to find referenceBlock name? Been searching for internet about it but nothing better works aside from some referenceblock that already ask.

Got this problem, I need to move or remove this reference block, but cant find out what it was called. Please help, I’m new here. enter image description here

In this pic, I need to remove the Order Information & Shipping method, I browse and explore vendor/Magento/Module-sales and find the xml of the sale,order,view but the referenceblock name or block name is not working when I remove it in my default.xml

I successfully customize my Account Dashboard cause there was given referenceblock name in net. But for Order Information cant find anything.

2 Answers 2


Below is the path of a file.


You can override in your theme or module and modify based on your requirements.

  • Thanks, I see the info of the Order Information, But what I see is their classes, What should I do if I want to use the <move element>, calling classes wont work on move element. Can you give me idea on how to move it? should I use css? not xml? Commented Nov 29, 2018 at 3:14
  • For sales order product information block name order_items and Sales billing/shipping/shipping method and payment method information block name sales.order.info. If you want to remove product information then <referenceContainer name="order_items" remove="true" /> If you want to remove Sales billing/shipping/shipping method and payment method then <referenceContainer name="sales.order.info" remove="true" /> Or If you want to move a block then <move element="order_items" destination="content" after="sales.order.info" /> You can use after and before based on your requirements. Commented Nov 29, 2018 at 4:21

You need to remove that container by using sales_order_view.xml in admin area. Create below xml file within any of your custom/third party module with below code:


<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
        <referenceContainer name="order_totals" remove="true" />

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.