0

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

Can you please help me step by step?

Regards Hiren Shah

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.

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, privacy policy and cookie policy

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