- Product Types
- Prices Types
- Adding Products
- One Time Pricing
- Subscription Pricing
- Subscription Trials Setup
- Installment Pricing
- Donation / Pay What You Want
- Inventory Management
- Product Variants
- Variant Images
- Digital Downloads
- Change Product Availability
- Product Collections
- First-Time Payment Discounts
- Manage Product Access
- Create Product With Free Trials
- Charge Set Up Fee on Trials
- Product List
- Product Pages
- Product Content
- Custom Buy Links
- Product SEO
- Change Permalinks
- Custom Fields
- Related Products
- Price Boost
- Product Reviews
- Product review shortcodes
- Test Mode/Payments
- Edit & Customize Form
- Change Form Template
- Delete SureCart Forms
- Add Checkout Form
- Checkout Form With Gutenberg
- Checkout Form in Elementor
- Custom Thank You Page
- Create Donation Form
- Customize Confirmation Popup
- Include Coupons in URLs
- Pre-Fill Checkout Fields
- Change Checkout Texts
- Password Field in Checkout
- Default Country Code
- Add Terms to Checkout
- Conditional Block Checkouts
- Remove Coupon Field
- Hide Quantity Option
- Disable Quantity Editing
- Disable Item Removal
- Country Specific Purchases
- Update Store Details
- Dark Mode
- Orders & Receipts
- Manage Slide-out Cart
- Customers Section Overview
- Create Customer
- Delete Customer
- Update Customer Details
- Edit Invoice Details
- Create Shipping Profiles
- Manage Shipping
- Disable Payment Processor
- Manage Store Notifications
- Manage PayPal Branding
- Transfer Store
- How to Download SureCart Purchase Invoice
- Vault – Redeem & Manage Your SureCart Pro Plan
- Enhance Performance Settings
- Invite Team Members
- Enable Spam Protection
- Sync WP Users
- User Roles & Permissions
- Export Data
- Clear Test Data
- Manage Email Notifications
- Remove User Roles
- Remove Plugin Data
- Delete Store
- Delete Business & User Account
- Guest checkout
- Switching Store Currency
- Fix View Order Button
- Fix Express Payment Buttons
- How To Stop Sending WooCommerce Notifications via SureCart?
- Fix PayPal Test Connection
- Fix Sign-In Loop
- Fix Order Confirmation Redirect
- Fix Divi Bullet Point Issue
- Fix Customer Dashboard
- Fix JSON Response Error
- Failed Payment Behavior
- Fix Stripe Zip Code Error
- Fix "Product Can’t Be Blank"
- Troubleshooting Guide
- PayPal IPN Warning Emails
- Caching Configuration for SureCart
- Why iDEAL Might Not Appear in Your CheckoutÂ
- Compatibility Guide
- Fix – SureCart store disconnected
- Configuring LiteSpeed Cache for SureCart
How to Display Product Reviews Using Shortcodes
This document explains how to use SureCart’s product review shortcodes to display reviews on any page, including pages built with Divi, Beaver Builder, Oxygen, and other page builders that do not support the WordPress Block Editor.
Requirements
- WordPress admin access
- SureCart installed and activated
- Reviews enabled on the product in SureCart
Available Shortcodes
sc_product_review_rating_stars
Displays the average rating as filled, half, or empty stars.
Basic usage:
[sc_product_review_rating_stars]
With attributes:
[sc_product_review_rating_stars id="123" size="24px" fill_color="#f59e0b" link_to_reviews="true"]
| Attribute | Type | Default | Description |
| size | string | 20px | Size of each star icon. |
| fill_color | string | Theme primary color | Color for filled stars (e.g. #f59e0b). |
| link_to_reviews | boolean | false | Wraps stars in a link to the reviews section. |
sc_product_review_rating_value
Displays the average rating as a numeric value (e.g., 4.5).
Basic usage:
[sc_product_review_rating_value]
With attributes:
[sc_product_review_rating_value link_to_reviews="true"]
| Attribute | Type | Default | Description |
| link_to_reviews | boolean | false | Wraps the value in a link to the reviews section. |
sc_product_review_total_count
Displays the total number of reviews (e.g., 156 reviews).
Basic usage:
[sc_product_review_total_count]
With attributes:
[sc_product_review_total_count show_label="false" link_to_reviews="false"]
| Attribute | Type | Default | Description |
| show_label | boolean | true | Shows the “reviews” label next to the count. Set to false to display the number only. |
| show_for_zero_reviews | boolean | true | Renders the block even when the product has no reviews. Set to false to hide it. |
| link_to_reviews | boolean | true | Wraps the count in a link to the reviews section. |
sc_product_review_breakdown
Displays a 5-star breakdown with progress bars showing the distribution of ratings.
Basic usage:
[sc_product_review_breakdown]
With attributes:
[sc_product_review_breakdown columns="2" bar_fill_color="#f59e0b"]
| Attribute | Type | Default | Description |
| columns | number | 1 | Number of columns for the breakdown layout. |
| fill_color | string | — | Color for the star icons in each row (e.g. #f59e0b). |
| bar_fill_color | string | — | Color for the filled portion of the progress bars (e.g. #f59e0b). |
| bar_background_color | string | — | Background color for the progress bar track (e.g. #e5e7eb). |
Note: fill_color controls the star icon color in each row. bar_fill_color controls the progress bar fill color. These are separate attributes. The star icon size within the breakdown rows is fixed and cannot be changed via shortcode.
sc_product_review_list
Displays the full review experience, including a summary section, filter sidebar, individual reviews with pagination, and the Write a Review form modal.
Basic usage:
[sc_product_review_list]
This shortcode includes:
- Summary section — Average rating value, stars, total count, and star breakdown
- Filter sidebar — Star rating filter tags and checkboxes
- Review items — Reviewer name, verified buyer badge, date, star rating, title, and content
- Pagination — Previous, page numbers, and next controls
- Empty state — A “No reviews yet” message with a Write a Review button
- Write a Review button — Opens the review form modal
This is the most complete shortcode and is equivalent to the full review block in the Block Editor.
sc_product_review_add_button
Displays a Write a Review button that opens the review form modal. If the user is not logged in, they are redirected to the customer dashboard to log in first.
Basic usage:
[sc_product_review_add_button]
With attributes:
[sc_product_review_add_button label="Leave a Review" button_type="text"]
| Attribute | Type | Default | Description |
| label | string | Write a Review | Button text label. Has no effect when button_type=”icon”. |
| button_type | string | both | Determines what the button displays: both (icon + text), text (text only), or icon (icon only). |
| icon | string | edit-2 | Icon name displayed in the button. |
| className | string | is-style-fill | CSS class for button style. Use is-style-fill for a filled button or is-style-outline for an outlined button. |
Examples
Display stars and rating on a landing page
[sc_product_review_rating_stars size="24px"]
[sc_product_review_rating_value] / 5.0
[sc_product_review_total_count]
Display the full review section on a custom page
[sc_product_review_list]
Display review count without label or link
[sc_product_review_total_count show_label="false" link_to_reviews="false"]
Display the breakdown with custom colors
[sc_product_review_breakdown columns="2" bar_fill_color="#f59e0b" bar_background_color="#e5e7eb"]
Display a standalone review button with a custom label
[sc_product_review_add_button label="Leave a Review" button_type="text"]
Use shortcodes directly on a product page (no ID required)
[sc_product_review_rating_stars]
[sc_product_review_breakdown]
[sc_product_review_list]
Notes
- Reviews must be enabled on the product in SureCart for any shortcode to render output.
- These shortcodes use the WordPress Interactivity API. Interactive features, such as pagination, filters, and the review form modal, function without full page reloads.
- These shortcodes override the auto-generated ones from the block registration loop, which do not set up product context correctly.
FAQ
We don't respond to the article feedback, we use it to improve our support content.