Jump to content

Add products rating to "productsc ategory" module


Recommended Posts

Hello,

 

I have on my product page the module "products category" to show a list of products from the same category.

 

I've added the hook: {hook h='displayProductListReviews' product=$categoryProduct} to productscategory.tpl to show the rating of the products. I've copied it from product_list.ptl and replaced the paramater with $categoryProduct

 

It works 100%, the rating of all the products appear, the problem now is that the rating of the product on the product page disappears.

 

They use different hooks and tpls, what can I do?

 

For the product on the product page it uses the hook: hookDisplayRightColumnProduct

tpl is: productcomments-extra.tpl

 

The one for the products category is: hookDisplayProductListReviews

tpl is: productcomments_reviews.tpl

 

I tried making a new hook for the products category but it didn't work..

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