WordPress.org

Forums

[resolved] [Plugin: WooCommerce] Placing Review link & Rating next to product in catalog (3 posts)

  1. Simone
    Member
    Posted 2 years ago #

    How can I get my product to show the amount of reviews and the star rating next to the product in the catalog? I have made an example in photoshop:

    http://i.imgur.com/ldKbSjF.jpg

  2. Simone
    Member
    Posted 2 years ago #

    I feel like I have to echo:

    echo '<div class="star-rating" title="'.sprintf(__( 'Rated %s out of 5', 'woocommerce' ), $average).'"><span style="width:'.( ( $average / 5 ) * 100 ) . '%"><strong itemprop="ratingValue" class="rating">'.$average.'</strong> '.__( 'out of 5', 'woocommerce' ).'</span></div>';

    in shop-loop.php or something...

  3. Simone
    Member
    Posted 2 years ago #

    got it, it shows up when there is a review made

Topic Closed

This topic has been closed to new replies.

About this Topic