i want only user that buy the product can review the product. how i do that? can anyone help me? Thanks
Please more elaborate your question.
Can't understand your question properly. Please elaborate it ,So that I can help you regarding your issue.
I think the question was pretty straightforward: is it possible to make it so that to review a product you need to buy it first. Several respected extension provides have solutions that do just that.
This was the first one I found: https://ecommerce.aheadworks.com/magento-extensions/advanced-reviews.html
Your means register user only can view and buy product right.
Initally make the option "Allow Guests to Write Reivews" to "No". Now, you can make this by taking the order collection of a particular product by getProductOrderCollectionById(). From that order collection we can get the list of the customers who purchased it.
In the other hand, you can get the ID of the logged-In customer. If the Order collection list contains the logged In customer ID, then you can allow them to display the review form. click here