trying to save the my oven data in newly added column of sales_order_grid but unable to to do so.
However, I can save my custom the data in sales_order table where I have added one extra column.
I am adding the data in sales_order table by getting below observer event.
$obj = $observer->getEvent()->getOrder();
$obj->setMyName($value);
same data is not saving in sales_order_grid table having same column name..
is there there anyway or anything alternative to achieve this???
Best Answer
Suppose column name 'delivery_date, So that you need to add di.xml for save some value for custom column to grid
Vendor/Module/etc/di.xml
Here is an example