0

This question already has an answer here:

How to add admin Grid in magento 2.0.6

I want to display sold product list in that Admin Grid with order status filter

marked as duplicate by Keyur Shah, Keyul Shah, Fabian Schmengler, Raphael at Digital Pianism, Amit Bera Jul 11 '16 at 7:41

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • sold product means, products which is out of stock ??? or status in sales order list ?? – Mohammad Mujassam Jul 11 '16 at 4:58
  • yes Status in sales order list like how much sold particular product and order status – paramuduraisamy Jul 11 '16 at 5:03
  • And as a reference, the official documentation: devdocs.magento.com/guides/v2.1/ui-components/… – Fabian Schmengler Jul 11 '16 at 6:29
  • This should help you get started. About the contents of the grid: asking for a complete module is a bit too much for the Q&A format of this site, but if you begin building the grid and have a specific problem, feel free to ask a new question. But then add the code you have written and explain what exactly you need or what you don't understand. Good luck! – Fabian Schmengler Jul 11 '16 at 6:32
0

You don't need the create the grid for this, Just create one order status..

Follow the below given tutorial:

manage-order-status-in-magento-2

hope this will help..

  • Thank you for your response,let me check and let you know – paramuduraisamy Jul 11 '16 at 5:31
  • This is general about magento 2 order status ,i want to display product list with sale count and ordrer-status with filter in my custom module admin grid – paramuduraisamy Jul 11 '16 at 5:36
  • one product can belong to multiple orders with having different-2 status & one order can have multiple products.. as status is based on order so you can't segregate it for product... what you can do is, list the product with number of sold units... magneto doesn't provide the product based status... else you need to tweak which may take extra time for your module.. – Mohammad Mujassam Jul 11 '16 at 5:56
  • ok fine How we can display product with sale count in my custom module admin grid – paramuduraisamy Jul 11 '16 at 6:04
  • Kindly check sales_order_item Table and file with namespace Magento\Sales\Model\ResourceModel\Order\Item.. then you will understand how to get the sold products & there qty ordered & cancelled given for particular that you need product... by getting factory collection of the same you can get the exact sale of the product...Thanks – Mohammad Mujassam Jul 11 '16 at 6:24

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