How Can I Show Number On Product Rating On The Home Page?

i tried this ({$product.discussion.search.total_items}) ratings, but it's not working on the homepage but it work on product page

What block do you mean? Did you use correct template? Possibly reviews data is not retrieved from database for this block. To check it, print our the whole array with product data

{$product|fn_print_r}

It's not showing, here is an example of what im trying to do, it works on product page but not the home page or list pages

Product:

Nice black T - shirt

X X X X X (4 ratings)

I also tried to use this {assign var="reviews" value=""|fn_get_discussions}{$reviews[0]|@count} but it show the entire review count but i want it to show the review count for just the product under it's title on the homepage

Try to use

{$product_reviews = $product.product_id|fn_get_discussion:'P':true:$smarty.request}
{$product_reviews|fn_print_r}

Try to use

{$product_reviews = $product.product_id|fn_get_discussion:'P':true:$smarty.request}
{$product_reviews|fn_print_r}

WOW!!! you're the man! I appreciate the help, thanks!

You are welcome!