How to add a custom tab in the product edit page in admin version Magento 2.x for selecting a review of a product?
Hi @tinasabri4af7d,
Can you please tell me if you want to add a grid or column?
Moreover, here is step-by-step guidance for how to add grid
Firstly, override Magento\Review\Block\Adminhtml\Grid.php using preference in di.xml. Then, create file VendorName\ModuleName\Block\Adminhtml
<?php
namespace VendorName\ModuleName\Block\Adminhtml;
class ReviewGrid extends \Magento\Review\Block\Adminhtml\Grid
{
protected function _prepareColumns()
{
parent::_prepareColumns();
$this->addColumn(
'review_child',
[
'header' => __('name of tab'),
'type' => 'text',
'index' => 'review_child',
'escape' => true
]
);
return $this;
}
}
Let me know if you have any doubts regarding this.
If solved? Click KUDOS and accept it as a solution.
Thank you!
you can this blog it will help you
https://webkul.com/blog/add-tab-product-page-magento-2-0-x-admin/Quote