Jump to content

How to display total number of comments and average value on category or product list page


Recommended Posts

Hi,

My shop is built with Prestashop 1.5.6.2.

I am using the productcomments module (developed by Prestashop) version 2.5.

The module works well and allows the display of comments on product pages.

I would like to do the following :
- display on other pages (such as category or product list pages) the total number of comments and the related average value for all the comments of the whole site.

Would anyone have an idea how to achieve that ?

Thank you in advance for any suggestion in this matter.

Patrick

Link to comment
Share on other sites

To give you an idea, basically you need a couple of things...

 

> Add a hook to your module, hookLeftColumn or hookRightColumn, depending in which side you want to display it

> Create the necessary code inside this new hook

> Create the tpl file inside the module folder

> In the "BO > Modules > Modules positions" anchor the hook created

Link to comment
Share on other sites

  • 3 weeks later...

Hi,

I thank Cotoko for his reply.

Unfortunately, I am not a developer and I am not able to create the code inside the new hook and to create
the tpl file inside the module folder.

If anyone has time enough, could you give me more details to create such code ?

Thank you in advance, anyway.

Patrick

Link to comment
Share on other sites

  • 7 months later...
  • 1 year later...

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...