Dynamically Query Product Review Quantity

Without using the product review element, is there a way to dynamically get the number of reviews a product has? I want to use this on a shop page.

I see that I can query the rating of a woocommerce product but I do not see the quantity of reviews as an available field

I looked on Dynamic Data – Bricks Academy and WooCommerce Builder – Bricks Academy but did not see what the field would be

Hi @lynxm ,

If you are inside single product context, you can use {echo:get_comments_number}

Regards,
Jenn

3 Likes

Thanks Jenn! Got it.

Doesnt seem to work for me in 1.12.1

@Webrats

Please ensure you have whitelisted the get_comments_number function

1 Like