---
title: "How to Add Column in Orders Tab in Magento 2 Customer Admin Edit Page?"
url: "https://magecomp.com/blog/add-column-in-orders-tab-in-magento-2-customer-admin-edit-page/"
date: "2021-07-24T11:34:20+00:00"
modified: "2025-02-18T04:53:57+00:00"
author:
  name: "Dhiren Vasoya"
  url: "https://magecomp.com/"
categories:
  - "How To"
  - "Magento 2"
word_count: 403
reading_time: "3 min read"
summary: "Hello Magento Friends,"
description: "Magento 2 admin can get additional order information. Learn How to Add Column in Orders Tab in Magento 2 Customer Admin Edit Page."
keywords: "How To, Magento 2"
language: "en"
schema_type: "Article"
related_posts:
  - title: "Magento 2: How to Add Group Product into Cart Individually"
    url: "https://magecomp.com/blog/magento-2-add-group-product-into-cart-individually/"
  - title: "How to Get Product Information Using SOAP API in Magento 2"
    url: "https://magecomp.com/blog/get-product-information-using-soap-api-magento-2/"
  - title: "Magento 2: Customize Checkout Order Summary by Adding Custom Content"
    url: "https://magecomp.com/blog/magento-2-customize-checkout-order-summary-by-adding-custom-content/"
---

# How to Add Column in Orders Tab in Magento 2 Customer Admin Edit Page?

_Published: July 24, 2021_  
_Author: Dhiren Vasoya_  

![How to Add Column in Orders Tab in Magento 2 Customer Admin Edit Page](https://magecomp.com/blog/wp-content/uploads/2021/07/How-to-Add-Column-in-Orders-Tab-in-Magento-2-Customer-Admin-Edit-Page-1024x512.webp)

**Hello Magento Friends,**

Today I am going to illustrate How to Add Column in Orders Tab in Magento 2 Customer Admin Edit Page?
[![Hire Magento Programmer](https://magecomp.com/blog/wp-content/uploads/2025/02/Hire-Magento-Programmer-CTA-5.webp)](https://magecomp.com/services/hire-magento-programmer/)

To efficiently fulfill orders, the admin needs to get additional information about the orders placed by the customers. To do this, Magento 2 store admin can add a custom column in the orders tab on the customer admin edit page.
Follow the below steps to Add Column in Orders Tab in Magento 2 Customer Admin Edit Page
## Steps to Add Column in Orders Tab in Magento 2 Customer Admin Edit Page:
**Step 1:** Go to the below path
 **app\code\Vendor\Extension\etc\adminhtml\di.xml**

Now, add the below code
```
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <preference for="MagentoCustomerBlockAdminhtmlEditTabOrders"
                type="VendorExtensionBlockAdminhtmlEditTabOrders"/>
</config>
```

**Step 2:** Now, move to the below path
**app\code\Vendor\Extension\Block\Adminhtml\Edit\Tab\Orders.php**

And add the following code
```
<?php

namespace VendorExtensionBlockAdminhtmlEditTab;

use MagentoBackendBlockTemplateContext;
use MagentoBackendHelperData;
use MagentoCustomerBlockAdminhtmlEditTabOrders as BaseOrders;
use MagentoFrameworkRegistry;
use MagentoFrameworkViewElementUiComponentDataProviderCollectionFactory;
use MagentoSalesHelperReorder;
use MagentoSalesModelOrderConfig as OrderConfig;

class Orders extends BaseOrders
{
    /**
     * @var OrderConfig
     */
    protected $orderConfig;

    /**
     * Orders constructor.
     *
     * @param Context $context
     * @param Data $backendHelper
     * @param CollectionFactory $collectionFactory
     * @param Reorder $salesReorder
     * @param Registry $coreRegistry
     * @param OrderConfig $orderConfig
     * @param array $data
     */
    public function __construct(
        Context $context,
        Data $backendHelper,
        CollectionFactory $collectionFactory,
        Reorder $salesReorder,
        Registry $coreRegistry,
        OrderConfig $orderConfig,
        array $data = []
    ) {

        $this->orderConfig = $orderConfig;
        parent::__construct(
            $context,
            $backendHelper,
            $collectionFactory,
            $salesReorder,
            $coreRegistry,
            $data
        );
    }

    /**
     * @inheirtDoc
     */
    public function setCollection($collection)
    {
        $collection->addFieldToSelect('status');
        parent::setCollection($collection);
    }

    /**
     * @inheirtDoc
     */
    protected function _prepareColumns()
    {
        parent::_prepareColumns();

        $this->addColumnAfter('status', array(
            'header' => __('Status'),
            'index' => 'status',
            'type'  => 'options',
            'width' => '70px',
            'options' => $this->orderConfig->getStatuses(),
        ), 'store_id');

        $this->sortColumnsByOrder();
        return $this;
    }
}
```

That’s it!
[![Magento version upgrade](https://magecomp.com/blog/wp-content/uploads/2025/02/Magento-2-Version-Upgrade-CTA-3.webp)](https://magecomp.com/services/magento-upgrade-services/)

## Conclusion:
Hence, this way you can Add Column in Orders Tab in Magento 2 Customer Admin Edit Page. Additionally, you can also [**Create a Custom tab in the Admin Customer Edit page in Magento 2**](https://magecomp.com/blog/create-custom-tab-admin-customer-edit-page-magento-2/).
In case of any difficulties, feel free to reach me via the comment box. Share the article and stay connected for more Magento 2 tutorials.
[![Magento Malware Removal](https://magecomp.com/blog/wp-content/uploads/2025/02/Magento-Malware-Removal-CTA-6.webp)](https://magecomp.com/magento-malware-removal.html)

**Happy Coding!**


---

_View the original post at: [https://magecomp.com/blog/add-column-in-orders-tab-in-magento-2-customer-admin-edit-page/](https://magecomp.com/blog/add-column-in-orders-tab-in-magento-2-customer-admin-edit-page/)_  
_Served as markdown by [Third Audience](https://github.com/third-audience) v3.5.3_  
_Generated: 2026-07-03 05:48:55 UTC_  
