Title: Better WooCommerce Stars Shortcode
Author: Clicknathan
Published: <strong>24 août 2015</strong>
Last modified: 24 août 2015

---

Recherche d’extensions

![](https://ps.w.org/better-woocommerce-stars-shortcode/assets/banner-772x250.png?
rev=1229437)

Cette extension **n’a pas été testée avec plus de trois mises à jour majeures de
WordPress**. Elle peut ne plus être maintenue ou supportée et peut avoir des problèmes
de compatibilité lorsqu’elle est utilisée avec des versions de WordPress plus récentes.

![](https://s.w.org/plugins/geopattern-icon/better-woocommerce-stars-shortcode_e7e7e7.
svg)

# Better WooCommerce Stars Shortcode

 Par [Clicknathan](https://profiles.wordpress.org/clicknathan/)

[Télécharger](https://downloads.wordpress.org/plugin/better-woocommerce-stars-shortcode.zip)

 * [Détails](https://fr.wordpress.org/plugins/better-woocommerce-stars-shortcode/#description)
 * [Avis](https://fr.wordpress.org/plugins/better-woocommerce-stars-shortcode/#reviews)
 *  [Installation](https://fr.wordpress.org/plugins/better-woocommerce-stars-shortcode/#installation)
 * [Développement](https://fr.wordpress.org/plugins/better-woocommerce-stars-shortcode/#developers)

 [Support](https://wordpress.org/support/plugin/better-woocommerce-stars-shortcode/)

## Description

Creates a shortcode, `[woocommerce_rating id="n"]`, that displays the rating, in
stars, of any WooCommerce product. `[woocommerce_rating]` will show the star rating
of the current product. This plugin requires WooCommerce.

## Installation

 1. Log in to your WordPress dashboard, then click Plugins->add new.
 2. Search for the Woocommerce Stars Shortcode plugin in the plugin repository.
 3. Click the « install now » link under the name of the plugin.
 4. Activate the plugin.

Or, if you prefer:
 1. Upload `woocommerce_stars_shortcode.php` to the `/wp-content/
plugins/` directory 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## FAQ

  Installation Instructions

 1. Log in to your WordPress dashboard, then click Plugins->add new.
 2. Search for the Woocommerce Stars Shortcode plugin in the plugin repository.
 3. Click the « install now » link under the name of the plugin.
 4. Activate the plugin.

Or, if you prefer:
 1. Upload `woocommerce_stars_shortcode.php` to the `/wp-content/
plugins/` directory 2. Activate the plugin through the ‘Plugins’ menu in WordPress

  How about some instructions?

Instructions are here: http://clicknathan.com/web-design/better-woocommerce-star-
ratings-shortcode-plugin/

  What are the short code options?

[woocommerce_rating id= »n »] is the default. Replace « n » with the ID of the product
you want to show the ratings for.

[woocommerce_rating id= »n » link= »false »] Add this if you don’t want the star
rating to be a link.

[woocommerce_rating id= »n » newwindow= »true »] Add this if you want the link to
open in a new window.

[woocommerce_rating id= »n » alttext= »Some alternative text »] This allows you 
to customize the text shown when a product has not yet been rated.

[woocommerce_rating id= »n » displayaverage= »true »] This will add a number, the
average of all ratings for this product, after the stars, like ( 3.25 )

[woocommerce_rating id= »n » displaycount= »true »] This will add a number, the 
total number of ratings for this product, after the stars, like ( 420 )

## Avis

![](https://secure.gravatar.com/avatar/2feb4573194a35318d94e040b86e95728d259d31b5ecfa1a0566ce5077d6ef58?
s=60&d=retro&r=g)

### 󠀁[Perfect!](https://wordpress.org/support/topic/perfect-4429/)󠁿

 [closery](https://profiles.wordpress.org/closery/) 9 octobre 2017

This is perfect plugin! Simple and easy to use. I really love it, thanks mate! If
anyone can not use in theme files use do_shortcode function like that; <?php echo
do_shortcode( '[woocommerce_rating]' ); ?>

![](https://secure.gravatar.com/avatar/87758431cc8afd1a22e86d13504b03fe6b742486c62449175b8d30483ed245f9?
s=60&d=retro&r=g)

### 󠀁[Not showing stars at all.](https://wordpress.org/support/topic/not-showing-stars-at-all/)󠁿

 [deanMKD](https://profiles.wordpress.org/deanmkd/) 4 octobre 2017 2 réponses

Only show me "Be the first to rate 808 Touchdown V1" and nothing more.. Not working.

![](https://secure.gravatar.com/avatar/1dcf6fcbecaacf7353f8734452e790882cbe07053a5a8e36af01ac92d7e17411?
s=60&d=retro&r=g)

### 󠀁[The first plugin which gets my Review. Amazin Job for such a basic thing!](https://wordpress.org/support/topic/the-first-plugin-which-gets-my-review-amazin-job-for-such-a-basic-thing/)󠁿

 [warhost](https://profiles.wordpress.org/warhost/) 26 novembre 2016

So this is the first time I am reviewing a plugin. So why this one? Because I am
using a highly customized theme and several plugins with it, I couldn't figure out
a simple way of how to show the Star Count on a Product Page using Visual Composer.
This plugin solved this problem. It couldn't be easier. Thank you very much! P.S.:
I made a small enhancement to the code of the plugin, so that when you click on 
the stars, it will take you down the site to the reviews (the 'one-pager' style),
and not just refresh the page. When you want to do the same, in your Visual Composer(
or similar) specify an ID to a row/section you want a click on the stars to move
to (Reviews in this case), then edit the plugins file by appending the id to the
link: $link = get_permalink( $id ) . "#theIDyouChose"; This will append the ID to
the link of the stars.

 [ Lire les 3 avis ](https://wordpress.org/support/plugin/better-woocommerce-stars-shortcode/reviews/)

## Contributeurs/contributrices & développeurs/développeuses

« Better WooCommerce Stars Shortcode » est un logiciel libre. Les personnes suivantes
ont contribué à cette extension.

Contributeurs

 *   [ Clicknathan ](https://profiles.wordpress.org/clicknathan/)
 *   [ rooteerooroo ](https://profiles.wordpress.org/rooteerooroo/)

[Traduisez « Better WooCommerce Stars Shortcode » dans votre langue.](https://translate.wordpress.org/projects/wp-plugins/better-woocommerce-stars-shortcode)

### Le développement vous intéresse ?

[Parcourir le code](https://plugins.trac.wordpress.org/browser/better-woocommerce-stars-shortcode/),
consulter le [SVN dépôt](https://plugins.svn.wordpress.org/better-woocommerce-stars-shortcode/),
ou s’inscrire au [journal de développement](https://plugins.trac.wordpress.org/log/better-woocommerce-stars-shortcode/)
par [RSS](https://plugins.trac.wordpress.org/log/better-woocommerce-stars-shortcode/?limit=100&mode=stop_on_copy&format=rss).

## Journal des modifications

#### 1.0

 * Updated the shortcode options to allow displaying an average count and total 
   count after the star display
 * Made the newwindow option « false » by default.
 * Plugin now injects necessary CSS via wp_footer

#### 0.5

 * Release

## Méta

 *  Version **1.0**
 *  Dernière mise à jour **il y a 11 ans**
 *  Installations actives **50+**
 *  Version de WordPress ** 3.0 ou plus **
 *  Testé jusqu’à **4.8.34**
 *  Langue
 * [English (US)](https://wordpress.org/plugins/better-woocommerce-stars-shortcode/)
 * Étiquettes
 * [rating](https://fr.wordpress.org/plugins/tags/rating/)[ratings](https://fr.wordpress.org/plugins/tags/ratings/)
   [shortcode](https://fr.wordpress.org/plugins/tags/shortcode/)[stars](https://fr.wordpress.org/plugins/tags/stars/)
   [woocommerce](https://fr.wordpress.org/plugins/tags/woocommerce/)
 *  [Vue avancée](https://fr.wordpress.org/plugins/better-woocommerce-stars-shortcode/advanced/)

## Évaluations

 3.7 sur 5 étoiles.

 *  [  2 avis à 5 étoiles     ](https://wordpress.org/support/plugin/better-woocommerce-stars-shortcode/reviews/?filter=5)
 *  [  0 avis à 4 étoile     ](https://wordpress.org/support/plugin/better-woocommerce-stars-shortcode/reviews/?filter=4)
 *  [  0 avis à 3 étoile     ](https://wordpress.org/support/plugin/better-woocommerce-stars-shortcode/reviews/?filter=3)
 *  [  0 avis à 2 étoile     ](https://wordpress.org/support/plugin/better-woocommerce-stars-shortcode/reviews/?filter=2)
 *  [  1 avis à 1 étoile     ](https://wordpress.org/support/plugin/better-woocommerce-stars-shortcode/reviews/?filter=1)

[Votre avis](https://wordpress.org/support/plugin/better-woocommerce-stars-shortcode/reviews/#new-post)

[Tout voir](https://wordpress.org/support/plugin/better-woocommerce-stars-shortcode/reviews/)

## Contributeurs

 *   [ Clicknathan ](https://profiles.wordpress.org/clicknathan/)
 *   [ rooteerooroo ](https://profiles.wordpress.org/rooteerooroo/)

## Support

Quelque chose à dire ? Besoin d’aide ?

 [Voir le forum de support](https://wordpress.org/support/plugin/better-woocommerce-stars-shortcode/)