Hello Magento Friends,

In today’s Magento tutorial we will learn about How to Add Custom Column for New Order Select Product Grid in Magento 2.

At the time of order creation in Magento 2, the product grid contains columns related to product information. You can create a Magento 2 custom product grid by adding the required column.

Let’s learn How to Add Custom Column for New Order Select Product Grid in Magento 2.

Steps to Add Custom Column for New Order Select Product Grid in Magento 2:

Step 1: Add layout file sales_order_create_index.xml in your extension at the below path

app/code/Vendor/Extension/view/adminhtml/layout/sales_order_create_index.xml

Add the code as follows

Step 2: Override the phtml file from the vendor path

vendor/magento/module-sales/view/adminhtml/templates/order/create/items/grid.phtml 

And add phtml file grid.phtml at below path 

app/code/Vendor/Extension/view/adminhtml/templates/order/create/items/grid.phtml 

And replace the section from the vendor to the below code

Conclusion:

This way you can Add Custom Column for New Order Select Product Grid in Magento 2. You can also Add a Custom Filter to the Product Grid in Magento 2. If you have any doubt, let me know through the comment section. Share the solution with your friends and stay updated for more tutorials.

Happy Coding!

Click to rate this post!
[Total: 3 Average: 5]