0

I want to get sales order report collection programmatically. I don't know by which class I can able to fetch. Can anyone please help me?

I want to get same records which display in screenshot.

enter image description here

1 Answer 1

0

You should be able to get the data you want by using the collection:

vendor/magento/module-sales/Model/ResourceModel/Report/Order/Collection.php

Magento is implementing the grid in your screenshot in this file:

vendor/magento/module-reports/Block/Adminhtml/Sales/Sales/Grid.php

where you should be able to get examples on how to implement it (with filters).

1
  • Can you please add full code?
    – Mehta Prem
    Commented Sep 2, 2021 at 11:42

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.