Support » Fixing WordPress » Comments

  • Hi everyone, i use wp + woocommerce. After each product there is tab like desription, review and etc. When someone write a review for product its only show in product page. I want to show this review also on other page. Is it immposible or not ? Thank you !

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi aleksandarstefanov,

    Nothing is impossible.

    Whenever you want to review of the product you can display on any page just need to hook and filter of proper place. Here I have see you one example. If you want display review on shop page just put below code in your active theme’s functions.php file.

    add_action('woocommerce_after_shop_loop_item', 'add_star_rating' );
    function add_star_rating()
    global $woocommerce, $product;
    $average = $product->get_average_rating();
    echo '<div class="star-rating"><span style="width:'.( ( $average / 5 ) * 100 ) . '%"><strong itemprop="ratingValue" class="rating">'.$average.'</strong> '.__( 'out of 5', 'woocommerce' ).'</span></div>';

    Rushabh Shah

    Thread Starter aleksandarstefanov


    I do that but nothing change. I want to put this reviews also on page ( Feedback with stars ) – I want reviews from product to come on this page too. Please help me.

    Hi aleksandarstefanov,

    I have understood your query. I want to suggest you below link. And I know it definitely helps you.

    Plugin link

    If you have any query or concern about same then please let me know so that I can help you.

    Rushabh Shah

    • This reply was modified 3 years, 12 months ago by Rushabh Shah.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Comments’ is closed to new replies.