• Resolved ckwang

    (@ckwang)


    hello woocommerce , star ratings show beside product names on listings blocks, catalogue and shop pages what have you, but unlike product pages the number of reviews is not shown, I’ve a review plugin installed but their support say this can only be fixed if elementor is installed which I don’t want, personally I think this is just a php code snippet addon so would like to ask if anyone knows how to do this thx

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

Viewing 9 replies - 16 through 24 (of 24 total)
  • Thread Starter ckwang

    (@ckwang)

    Hi Pepe. Unfortunately the above simple shortcode produces only one set roster of products, surprisingly. No matter how many time reload the page it is always the same roster. It is by far anything but random unfortunately. Unfortunately woocommerce docs do not give any extra info in terms of it’s randomization limitations.

    Mirko P.

    (@rainfallnixfig)

    Hi @ckwang,

    Unfortunately the above simple shortcode produces only one set roster of products, surprisingly. No matter how many time reload the page it is always the same roster.

    The product attribute option rand?– randomly orders the products on page load but may not work with sites that are using caching.

    Full size: https://i.vgy.me/QndVKU.png

    Could you clear the cache of your website and deactivate any caching plugins installed (including those on the server) before checking again?

    Cheers.

    Thread Starter ckwang

    (@ckwang)

    i have tried clearing cache but it didn’t do anything. In terms of clearing cache on server, I’m not sure there is any, website is routed through cloudflare. And I don’t have any caching plugin installed. I don’t think this is a caching problem. If it was, it would show the same roster of products everytime but it doesn’t but instead rotates through a set roster, through a set sequence , which means it is functioning properly but has a built in limitation or something. Another plugin on the site also shows random set of products each time, and it’s randomness is true randomness, no repeats, so meaning it’s not a caching problem.

    Saif

    (@babylon1999)

    Hello @

    If it was, it would show the same roster of products everytime but it doesn’t but instead rotates through a set roster, through a set sequence , which means it is functioning properly but has a built in limitation or something.

    I’m not sure if I fully understand this part. :?)

    If you mean there’s a pattern when referring to the page, then from what I checked, this is expected.

    Could you please try adding the following snippet via a plugin like Code Snippets and let us know if that reduces the repetitive pattern?

    function custom_wc_product_query_max_rand_cache_count( $count ) {
        $count = "20";
        return $count;
    }
    add_filter( 'woocommerce_product_query_max_rand_cache_count', 'custom_wc_product_query_max_rand_cache_count' );

    Look forward to hearing back from you.

    Thread Starter ckwang

    (@ckwang)

    hey thx for snippet but testing it again it showing true random now, should I still implement this code?

    Hi @ckwang,

    thx for snippet but testing it again it showing true random now, should I still implement this code?

    I’m glad to hear that the randomization is now working as expected! If you’re not experiencing any issues at the moment, you don’t need to implement the code snippet provided. It’s always best to keep your site as clean as possible and only add code when necessary.

    However, if you encounter the same issue in the future, you can consider applying the code snippet.

    Remember, we’re here to help if you have any more questions or need further assistance. Have a great day!

    Hi Roxy,

    I have used code mentioned in below link

    https://gist.github.com/stoltzrx/dd618eddcf3c134ad7ba49c1c499a40f

    I can see number reviews on “Product Category” page however, it’s show below product image instead of displaying it next to Star ratings

    You can see implemented code on below URL

    https://www.homekia.in/product-category/blushbees-clothes-storage-boxes/

    Any suggestion how to display number of reviews next to Star ratings on Product Category Page

    Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi @sareeboxes,

    It seems you are also looking to display the number of reviews besides star ratings on product listing blocks.

    As different sites have different setups, I would suggest opening a separate thread where you can get customized assistance based on your site’s setup.

    Cheers!

    Thanks I have started a separate thread!

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘Need to show number of reviews besides star ratings on product listing blocks’ is closed to new replies.