• Resolved Tobias

    (@3dtobias)


    Hi,

    i activated the setting in WooCommerce to display the product ratings.
    Unfortunately the tab with the rating aren’t displayed.

    I know it worked, because i deactiveted it at the beginning of my online-shop.

    I deactivated all of my plugins to check if any makes trouble, but no-one do.

    In my theme settings i can’t deactivate the ratings.

    What can i do?
    To my Shop

    Thank you
    Tobias

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi Tobias @3dtobias,

    Thanks for reaching out.

    It seems like you’re having trouble with displaying the product ratings tab on your WooCommerce shop.

    First, please ensure that you’ve enabled the reviews from WooCommerce settings. You can do this by navigating to WooCommerce > Settings > Products > General and tick the ‘Enable reviews’ box.

    Secondly, the issue could be related to your theme. Some themes may override the default WooCommerce templates and this could be affecting the display of your ratings tab. If possible, try switching to a default theme like Twenty Twenty-Four or Storefront to see if the issue persists.

    Let us know how it goes.

    Thread Starter Tobias

    (@3dtobias)

    good morning,

    thank you for your answer.
    i’ve tested it with 3 other themes but no of them displayed the ratings tab ??.

    I use ShopVote for my ratings and uses a plugin and a script for it.
    When i deactivate both the ratings tab is still hidden.’

    I think it have to be a Plugin, but nothing happens when i deactivate one after one.

    Hi @3dtobias

    Thanks for sharing more details on this.

    As a next step, here’s what I recommend you do:

    1. Temporarily deactivate all your plugins except for WooCommerce and ShopVote.
    2. Check if the ratings tab is displaying correctly. If it is, then the issue is likely due to a conflict with one of the plugins you deactivated.
    3. Reactivate your plugins one by one, checking the ratings tab each time. Once the tab disappears again, the last plugin you activated is likely the cause of the conflict.

    You can find the steps to run a full conflict test from this guide here: https://woo.com/document/how-to-test-for-conflicts/

    Let us know if this helps resolve the issue.

    Thread Starter Tobias

    (@3dtobias)

    I found my problem.
    In my product i can activate/deactivate the rating.
    Most of them were deactivated.

    How can i activate all together?

    Thread Starter Tobias

    (@3dtobias)

    I found the following code for activating the ratings for all products.
    Insert it in your functions.php reload your backend. it takes a few seconds.
    After that deactivate it.

    add_action('admin_init', 'cwhf_enable_reviews');
    
    function cwhf_enable_reviews() {
    
        $args = array(
            'post_type'   => 'product',
            'numberposts' => -1,
            'comment_status' => 'closed',
            'post_status' => 'publish',
        );
    
        $shop_products = get_posts( $args );
        foreach( $shop_products as $item){
            $product = new WC_Product($item->ID);
            wp_update_post( array(
                'ID'    => $item->ID,
                'comment_status' => 'open',
            ) );
        }
    }
    • This reply was modified 11 months ago by Tobias.

    Hi @3dtobias,

    I found the following code for activating the ratings for all products.

    Glad to hear it – thanks for letting us know!

    I’ll mark this thread as resolved now. If you have any further questions, I recommend creating a new thread.

    All the best!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Product Ratings aren’t displayed’ is closed to new replies.