geniusbobz Posted July 21, 2014 Share Posted July 21, 2014 Hi I need your help. I have menu which says TOP RATED. It will display all products with customer comments and ratings. Kindly help me on how to do this? Thanks Link to comment Share on other sites More sharing options...
NemoPS Posted July 21, 2014 Share Posted July 21, 2014 It's not that easy to achieve. First off, are you using the default comments module? If so, you will need to create a new controller, grab some methods from there, or instantiate the module itself, then grab only products that have comments in the module's database tables. It needs some planning anyway Link to comment Share on other sites More sharing options...
geniusbobz Posted July 22, 2014 Author Share Posted July 22, 2014 Hi Nemo1 thanks for your reply. Yes Im using the default comment module(productcomments) in prestashop 1.6.. also using default theme. Can you give me a guide where to start on this? Link to comment Share on other sites More sharing options...
NemoPS Posted July 23, 2014 Share Posted July 23, 2014 Ok, so try creating a new page first http://blog.arvixe.com/how-to-create-new-pages-in-prestashop/ In the controller, get an instance of the comments module using Module::getInstanceByName('poductcomments')There should be a method to get comments... I forgot which one. If there is not, create a new method inside the productcomments class to get, say, the X top rated products Link to comment Share on other sites More sharing options...
Recommended Posts