Jump to content

Enable commenting just sold products


Recommended Posts

Hi,

 

I see every registered client can comment every product in the shop. It doesn't matter he bought it or not.

I tried to find a module to enable the possibility to the client to comment just the product he bought it, but I haven't found it yet.

 

One option I think it could be possible:

-Create a new table in the DB with 3 columns (ID_client, ID_product, is_commented).

-When a customer bought something, the system inserts a new row for each product he has on his cart.

-On the displaying product page, the system checks if, for the current logged client, he has an existing row (matching ID_client & ID_product) with the column is_commented setted as false. If so, the link "comment this product" is showed, otherwise it is hidden.

-When the customer writes his feedback about the product, the system sets this is_commented column as true.

 

The improved comment could be done.

 

 

The problem is I'm not familiar with the prestashop core and I don't know which files have to be modified, altought I think what it has to be done is quite easy. Anybody can help me?

 

 

Thanks in advance!

Edited by Leetoos (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...