Jump to content

Passing productcomments information to blockviewed


Recommended Posts

I'm trying to get ratings to show up on the products displayed in the blockviewed module (The one that displays your most recently viewed products in the left sidebar) however I can't seem to get it working as it doesn't rely on the $product array to generate the products which I find kind of strange.

I've found out how to pass various things from the $product array to the $viewedProduct array like the price for example using the  "Product::getProductProperties" but the productcomments module doesn't store anything in the $product array either so I'm a bit stumped on how I can pass that information across. The ideal solution would be to pass across the average rating for that product so I can style it with stars.

Any information regarding this issue will be greatly appreciated.

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