cancel
Showing results for 
Search instead for 
Did you mean: 

add custom column in Review table and display its values in review admin grid

add custom column in Review table and display its values in review admin grid

Hi,

I need to add extra fields in review form(Email and mobile number), and I need to write these values to review table and need to display it in admin grid as well

I followed this https://magento.stackexchange.com/questions/149513/add-email-field-to-review-form-magento-2 , but the grid column is created and data are written to the table but it's not displaying in admin grid

Admin grid

https://ibb.co/Nn8S3rn 

 

review details Table

https://ibb.co/v4YBB7T 

1 REPLY 1

Re: add custom column in Review table and display its values in review admin grid

Hello @raju_a 

 

Please refer https://devdocs.magento.com/guides/v2.3/extension-dev-guide/extension_attributes/adding-attributes.h... for the solution.

 

This is the default Magento 2 functionality that allows adding a new attribute in any entity like products, customers, categories, and also reviews.

 

Hope it helps.

---
If you've found my answer useful, please give"Kudos" and "Accept as Solution"