Jump to content

Top rated products


Recommended Posts

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

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

×
×
  • Create New...