# Review Prompt Below the Product Summary

> Adds a "Bought this? Share your review" link with the current review count under the WooCommerce product summary, opening the Reviews tab.

- Type: Universal
- Runs: Wc after single product summary
- Category: [Comments](https://wpide.com/library/category/comments/)
- Requires: WooCommerce
- Tags: comments, woocommerce, reviews
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/woo-review-prompt-after-summary/

## Code

```php
<?php
global $product;
if ( $product instanceof WC_Product && $product->get_reviews_allowed() && 'yes' === get_option( 'woocommerce_enable_reviews' ) ) :
    $wpide_reviews = (int) $product->get_review_count();
    ?>
<p class="wpide-review-prompt" style="clear:both;margin:1em 0">
    <a href="#reviews" class="woocommerce-review-link">
        <?php echo esc_html( $wpide_reviews ? sprintf( 'Bought this? Add your review to the %d others', $wpide_reviews ) : 'Bought this? Be the first to write a review' ); ?>
    </a>
</p>
<?php endif; ?>
```

## Notes

The woocommerce-review-link class makes WooCommerce open the Reviews tab on click.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Review Prompt Below the Product Summary" in its snippet library and add it in one click; or create a new Universal snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
