I want to add some custom field like sku to add in order grid to export along with the order.
I follow this link Add custom product attribute to Order Grid to do this, but this didn't work in this Magento version.
How to achieve this?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityI want to add some custom field like sku to add in order grid to export along with the order.
I follow this link Add custom product attribute to Order Grid to do this, but this didn't work in this Magento version.
How to achieve this?
The issue is with the code compilation and cache. Run command
php bin/magento setup:di:compile
php bin/magento cache:flush
and now my custom columns are showing in order grid and also export with other order data.