• Resolved avdbos

    (@avdbos)


    I need the average star rating per product on this page. I’ve created a custom product skin as I need to pull in some custom fields and work with Elementor Pro page builder. I’ve googled and searched this support thread. I see many people ask for it, but haven’t found a short code till now. How can I add only the average star rating per product?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    If you are using Woocommerce, then you should also use the Woocommerce Reviews add-on which integrates Site Reviews with Woocommerce and replaces the Woocommerce comment-based review system with Site Reviews.

    Next, you can use the [site_reviews_summary] shortcode (or the provided Elementor rating summary widget) to display the average rating in the product skin. Simply hide all the summary fields except for the rating and stars, and include the assigned_posts="post_id" option (see the “Help > Shortcodes” to learn more about this option).

    This may also be of interest: https://pastebin.com/MCDxctJ5

    • This reply was modified 3 years, 4 months ago by Gemini Labs.
    Thread Starter avdbos

    (@avdbos)

    Thanks for your help. I have the Site reviews for woocommerce already installed but somehow the extra choices for Woocommerce are not showing. The Elementor rating summary widget is not picking up the assigned_posts=”post_id” and show the same on any product. The code shared does the same, even when I add the assigned_posts=”post_id” to the shortcode [glsr_summary assigned_posts=”post_id”] . It is such a shame it is not working as we love the plugin and the way it shows the reviews ??

    Plugin Author Gemini Labs

    (@geminilabs)

    Are you sure it is not working? On the link you provided I see different ratings for each product.

    Plugin Author Gemini Labs

    (@geminilabs)

    It’s possible if you are using the summary shortcodes in an Elementor Grid widget that the assigned_posts="post_id" may not work. This is because using post_id as the value tells Site Reviews to use the global Post ID. If Elementor is not setting the global Post ID each time it loops over the pages being displayed in the grid, then Site Reviews will end up using the Post ID of the actual page that the grid is displayed on.

    If this describes your problem, then you will need to contact the @elemntor team to find out if there is a way to get the post ID of the pages being looped over in the grid (perhaps they have a tag you can use in the shortcode option).

    • This reply was modified 3 years, 3 months ago by Gemini Labs.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shortcode for Elementor Average star rating of a product’ is closed to new replies.