Leetoos Posted June 2, 2014 Share Posted June 2, 2014 (edited) 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 June 2, 2014 by Leetoos (see edit history) Link to comment Share on other sites More sharing options...
Leetoos Posted June 6, 2014 Author Share Posted June 6, 2014 Hi, Anyone? Is this the correct forum paragraph to post this doubt? Link to comment Share on other sites More sharing options...
Leetoos Posted June 13, 2014 Author Share Posted June 13, 2014 Is there any module I can see to inspire me? thnks Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now