Add extra column to new order product select

I want to add extra column to search product under new order. How do I do it?

enter image description here


  1. add attribute to the product. For example I add Barcode attribute.

  2. Edit:


Add the filter, for example I add Barcode filter:

$this->addColumn('barcode', ['header' => __('Barcode'), 'index' => 'barcode']);


rm -rf var/page_cache/*
rm -rf var/cache/*
rm -rf generated/*
rm -rf var/view_preprocessed/*
rm -rf pub/static/*

php  bin/magento  setup:upgrade;
php  bin/magento setup:di:compile;
php  bin/magento setup:static-content:deploy -f;

Similar questions

Add a new column to 'Create New Order' Page
I am wondering which files I need to edit in order to add a new column to the products list displayed when Creating a New Order. Specifically I wish to filter by Attribute Set Name, exactly as you are able to on the Catalog > Manager Products page.
Column exists but throwing Column not found: 1054 Unknown column 'so.event_id' in 'where clause' while inserting into sales_order
I have event_id column in my sales_order table. I want to place an order & I am not sending event_id because its zero by default. When am trying to place an order, Its throwing me the error Column not found: 1054 Unknown column 'so.event_id' in 'where clause', query was: INSERT INTO sales_order ... Here is the error am getting in INSERT Query: ...
Adding extra params to custom option select html
I'm working on a custom theme for a client. Is it possible to add extra parameters to the html for the custom options select without having to extend Mage_Core_Block_Html_Select or Mage_Catalog_Block_Product_View_Options_Type_Select? I can see in Mage_Core_Block_Html::_toHtml() that there is a call to $this->getExtraParams() but I can't seem to ...
Adding Extra Parameters to Select Element HTML
I am creating a custom module and using Magneto's core framework to render a select box using code as below: I get the select box fine but I want to pass extra parameters to select box and I tried following options just before getHtml() but none of them worked for me: can anyone help me regarding this if I want to pass extra parameters to the eleme...
How to show Extra free only not add in order total in order summary
I have code for add extra fee in order in magento 2, now my requirement is the extra fee can only show will be not add in order total the extra free can also add in order total but I can not add that I need order total 155 not 160 my code is that
Magento2 - Add Custom Column in cart item table and insert data to custom column when product add to cart
i have added new column in 'quote_item' table. i want to add the data to custom column when user add any product to cart.

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.