PHPackages                             php-cuong/magento2-product-review-form - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. php-cuong/magento2-product-review-form

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

php-cuong/magento2-product-review-form
======================================

Magento 2 Product Review Form Extension Free

2.1.0(7y ago)534OSL-3.0PHPPHP ~5.6.0|7.0.2|7.0.4|~7.0.6|~7.1.0|~7.2.0

Since Feb 12Pushed 7y ago2 watchersCompare

[ Source](https://github.com/php-cuong/magento2-product-review-form)[ Packagist](https://packagist.org/packages/php-cuong/magento2-product-review-form)[ RSS](/packages/php-cuong-magento2-product-review-form/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

magento2-product-review-form
============================

[](#magento2-product-review-form)

How to show review form only for the customer who has purchased the item in Magento 2

Why should you use this extension?
----------------------------------

[](#why-should-you-use-this-extension)

- By default, Magento 2 is showing review form on the product detail page for both Customer logged in and Guest, you can disable Guest by going to Magento Admin Panel and navigate to the Stores → Settings → Configuration → Catalog → Catalog. Then open Product Reviews tab, select the "Allow Guests to Write Reviews" as "No".
- You are working for a project, you are required to customize the review form, that allows it only to show with the customers who have purchased the product. You don't know how to complete this task, you are searching for a solution. Today I show you the best codes to complete your task.
- We have the scenario: When a customer views the product, we will check all orders of that customer if the current product exists in any orders, then show the review form and if not show a message.
- So what will we do in this practice?

1. We will create a new module called PHPCuong\_ProductReviewForm
2. We will use the preference to override the method named **\_construct() in the class named \\Magento\\Review\\Block\\Form**

How to install this extension?
------------------------------

[](#how-to-install-this-extension)

Under your root folder, run the following command lines:

- composer require php-cuong/magento2-product-review-form
- php bin/magento setup:upgrade --keep-generated
- php bin/magento setup:di:compile
- php bin/magento cache:flush

See the video How I can create this extension steps by step:
------------------------------------------------------------

[](#see-the-video-how-i-can-create-this-extension-steps-by-step)

1. Youtube: [https://www.youtube.com/watch?v=Z-qpnl7cI4Q&amp;index=54&amp;list=PL98CDCbI3TNvPczWSOnpaMoyxVISLVzYQ](https://www.youtube.com/watch?v=Z-qpnl7cI4Q&index=54&list=PL98CDCbI3TNvPczWSOnpaMoyxVISLVzYQ)
2. Facebook:

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2646d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f7bc25983eb7357a3f984a2d831cbee0752dc43ff33c95910d6fbc834a7ddfb?d=identicon)[PHPCuong](/maintainers/PHPCuong)

---

Top Contributors

[![php-cuong](https://avatars.githubusercontent.com/u/13449271?v=4)](https://github.com/php-cuong "php-cuong (5 commits)")

---

Tags

limit-product-review-formmagento2magento2-extensionshow-product-review-formmagentomagento 2Magento 2 Extension Freereview formproduct review form

### Embed Badge

![Health badge](/badges/php-cuong-magento2-product-review-form/health.svg)

```
[![Health](https://phpackages.com/badges/php-cuong-magento2-product-review-form/health.svg)](https://phpackages.com/packages/php-cuong-magento2-product-review-form)
```

###  Alternatives

[yireo/magento2-webp2

Magento 2 module to add WebP support to the Magento frontend

2091.2M7](/packages/yireo-magento2-webp2)[tig/postnl-magento2

TIG Magento 2 PostNL extension

58544.2k4](/packages/tig-postnl-magento2)[elgentos/magento2-product-duplicate-images-remove

Magento 2 find duplicate product images from your product list and from this list you can easily remove them by running a command

201.4k](/packages/elgentos-magento2-product-duplicate-images-remove)[magepal/magento2-customeraccountlinksmanager

Customer Account Links Manager for Magento2 allows you to quickly and easily remove unwanted links from customer account dashboard

4084.9k](/packages/magepal-magento2-customeraccountlinksmanager)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
