2

I need to copy the sales_order_grid table to a custom admin page. Is there a way to do so using Magento's API?

1 Answer 1

2

You can use standard ui grid in custom layout, like:

<referenceContainer name="content">
    <uiComponent name="sales_order_grid"/>
</referenceContainer>
5
  • Superb It's working! Mar 17, 2020 at 12:14
  • how to edit a mass action options in duplicate sales_order_grid Nov 7, 2020 at 5:41
  • If I want to add the custom column and add the data into the columns by using the API How can I achieve this
    – Rana Zain
    Jan 26 at 10:23
  • @RanaZain, to do this you can simply update the orders grid listing in your module by creating a file view/adminhtml/ui_comComponent/sales_order_grid.xml. But all changes will be visible in both places: in the custom controller with the orders grid and in the regular sales orders grid. Jan 28 at 23:00
  • I want to replicate the gird and then add custom columns in it and fetch data from the API
    – Rana Zain
    Jan 29 at 7:59

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.