0

I want to display the " product grid" from the catalog menu to in the "Reports Menu" in the admin panel, anyone how can I achieve this task? which means I want to access the product admin grid in the reports menu. thanks in advance.

1
  • Any hints or help is appreciated. May 29, 2022 at 13:40

1 Answer 1

2

you can do this by adding following line of code in

vendor/module-reports/etc/adminhtml/menu.xml

file in core module.

<add id="Magento_Reports::catalog_products" 
  title="Products" translate="title" 
  module="Magento_Catalog" sortOrder="90" 
  parent="Magento_Reports::report" action="catalog/product/" 
   resource="Magento_Catalog::products"/>

but it is a worst case because core menu.xml file couldn't be override. so we have to add custom code in core file. just we update in custom module's menu.xml file by "update" tag

<menu>
    <update id="Magento_Reports::report" title="Reports" sortOrder="60" resource="Magento_Reports::report"/>
</menu>

I hope it would be help for you.

3
  • what if we want to display ex- like id , product name price and SKU, on our report menu grid May 31, 2022 at 8:27
  • I mean I want to display a product admin grid In the report menu module and I only want to display product id, name and SKU like this, what approach should I follow? May 31, 2022 at 8:29
  • i want to do this in custom module, first i have to create a menu file , then controller files and layout files something like that, but in this grid i only want to show products grid but with only some fields May 31, 2022 at 8:31

Your Answer

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

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