cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 Product Review

Magento 2 Product Review

Hi,
I am new to magento2, i want to create my custom product reviews extension by using the default layout and functionalities of Magento2 built-in product review extension.

I am thinking of creating clone of Magento_Review buit-in extension as my custom productreview extension.

Is this the correct way?
Thanks

2 REPLIES

Re: Magento 2 Product Review

If you're not going to need the original review module and it's close to what you would need, I would keep that one there. Then create a new module Your_Reviews that's dependent on the Mage_Reviews modules and it then modifies the functionality that you don't want. 

 

This can be achieved by injecting your own dependencies in place of core one: http://devdocs.magento.com/guides/v2.2/extension-dev-guide/depend-inj.html or using plugins http://devdocs.magento.com/guides/v2.2/extension-dev-guide/plugins.html or using event observers http://devdocs.magento.com/guides/v2.2/extension-dev-guide/events-and-observers.html.

----
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution" as appropriate. Thanks!

Re: Magento 2 Product Review

If you want to create your custom module based on Default review module,

You just set dependency to core Magento _Review module in your modules module.xml file.

Base on your requirement you can override, made plugin or use event management from default review module which files you actually need.

Its a generic method to customize or modify default module.
If Issue Solved, Click Kudos/Accept As solutions.