Support » Plugins and Hacks » [Plugin: WooCommerce] Placing Review link & Rating next to product in catalog

  • Resolved Simone

    (@simonttz)


    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:

    View post on imgur.com

Viewing 2 replies - 1 through 2 (of 2 total)
  • Simone

    (@simonttz)

    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…

    Simone

    (@simonttz)

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WooCommerce] Placing Review link & Rating next to product in catalog’ is closed to new replies.