I want to display review form in pop-up window.
- I copied Form.php file from vendor/module-review/Block/Form.php to app/Company/Review/Block/Form.php
- Added below code in app/design/frontend/Company/developer/Magento_Review/templates/product/view/list.phtml
echo $this->getLayout()->createBlock("Bhs\Review\Block\Form")->setTemplate("Magento_Review::form.phtml")->toHtml(); ?>
This open a review form in pop-up but reviewing are not saving. What I should do so reviews save in database.