0

How to add Payment transaction column to sales order grid in admin?

Can you please help me step by step?

Regards Hiren Shah

2 Answers 2

0

Do 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.

2
  • No Isoled, I want to add Transaction ID 61739749182 in order grid.
    – Hiren Shah
    Commented May 27, 2019 at 11:34
  • Ah. If so you could have a look at magento.stackexchange.com/questions/267408/… and combine the solution with Webkul's blog add-custom-columns-to-order-grid-in-admin-magento-2
    – Isolde
    Commented May 27, 2019 at 11:49
0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.