How to add Payment transaction column to sales order grid in admin?
Can you please help me step by step?
Regards Hiren Shah
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 communityDo you mean payment method column? If so, if you go to Sales -> Orders, you will see a gear icon with the word "columns" next to it. If you click on it it opens a drop down with various column options. Just select the payment method column and it will show up in the Orders grid.
61739749182
in order grid.
May 27, 2019 at 11:34
you need to create custom module and add sales_order_grid.xml
in [Magento_Root]\app\code\[You Module Name]\view\adminhtml\ui_component
.
add new column in columns
like Transaction ID
. you need to override Magento\Sales\Model\ResourceModel\Order\Collection
model and use join query for sales_payment_transaction
table.
Here some links will help you
magento2 how to override model file?
Magento 2 How to Add a New Column to Orders Grid
May be it will help you.