WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
How to completely disable Reviews Tab (26 posts)

  1. peyote
    Member
    Posted 1 year ago #

    Hi everyone,

    WooCommerce 2.0
    WP 3.5.1

    I'm completely new to this and was wondering how to disable the reviews tab completely, as the reviews check box is enabled by default when adding a new product.

    Thanks!

    http://wordpress.org/extend/plugins/woocommerce/

  2. WeddingAlbumCafe
    Member
    Posted 1 year ago #

    you can completely remove reviews by using this filter

    file is:
    yourtheme/functions.php

    add_filter( 'woocommerce_product_tabs', 'sb_woo_remove_reviews_tab', 98);
    function sb_woo_remove_reviews_tab($tabs) {
    
     unset($tabs['reviews']);
    
     return $tabs;
    }
  3. peyote
    Member
    Posted 1 year ago #

    Thank you very much!

  4. cpfusion
    Member
    Posted 1 year ago #

    Thanks for this.

    Although this option should probably be a toggle on/off option in the WooCommerce settings!

  5. Tevya
    Member
    Posted 1 year ago #

    You can also use a plugin like: http://wordpress.org/plugins/disable-comments/ to disable comments. Reviews just use the comments feature for the product custom post type. So if you disable all comments, or just on the Products custom post type, it'll remove the tab on the product page as well.

  6. php,java,c#,vb
    Member
    Posted 12 months ago #

    Thank You Very much WeddingAlbumCafe

  7. jayaprakash.jp
    Member
    Posted 11 months ago #

    Hi WeddingAlbumCafe

    thanks

  8. TheJunkieMonkey
    Member
    Posted 11 months ago #

    Hi

    I am a total amateur with this at present, so do you just copy and paste that?

    Thanks

  9. Tevya
    Member
    Posted 11 months ago #

    @TheJunkieMonkey just use the plugin I mentioned: http://wordpress.org/plugins/disable-comments/ it makes it super easy.

  10. TheJunkieMonkey
    Member
    Posted 11 months ago #

    Hi Tevya

    Once downloaded How do I attach it to the site?

    Thanks

  11. Tevya
    Member
    Posted 11 months ago #

    The easiest way is from inside the WP Admin. Plugins>Add New search for "disable comments".

  12. ssmithalignsoftcom
    Member
    Posted 11 months ago #

    Thanks Tevya - I love finding a clear, quick fix to a problem.

    The Disable Comments plugin was exactly what I was looking for to turn off Reviews on a WooCommerce site.

  13. Tevya
    Member
    Posted 11 months ago #

    No problem. We use it on most our sites, because we usually want to at least disable comments on pages and media. Nothing more annoying than getting spam on an image attachment page. Sometimes we also use it to disable on posts & WooCommerce products (or everything), as well.

  14. Roy Ho
    Member
    Posted 11 months ago #

    In case you didn't know there is already a ON/OFF setting in the products/advance setting to turn off comments/reviews.

  15. Tevya
    Member
    Posted 11 months ago #

    Yes, I think we were aware @splashing, but that's a per-product setting. Just like the per-post/page setting. This plugin (or the code provided above) does it for all of them. Without it, you'd have to change it manually for every product (or post, page, etc).

  16. ssmithalignsoftcom
    Member
    Posted 11 months ago #

    @splashingpixels.com - Yes, that's true, but as Tevya points out it's sometimes very desirable to be able to globally disable comments rather than having to set it granularly, especially if a number of posts, pages or products have been entered with comments/reviews enabled.

    The other issue is that some themes will display a comments or reviews tab regardless of whether you have comments/reviews enabled on a per product basis, and globally disabling comments/reviews will make this tab disappear (on well designed themes). I personally dislike having a content tab that will never have any content in it, and disabling via CSS or in the template.php file is much less desirable than just turning off the feature globally.

  17. Roy Ho
    Member
    Posted 11 months ago #

    @Tevya - not true...You can bulk edit products...

  18. Tevya
    Member
    Posted 11 months ago #

    Yes, you can. And then you potentially have to go through many pages doing that repeatedly to get all products, PLUS you have to remember to do it on each new product (or tell your client to remember to it, if they're the one adding new products). Using a plugin or code to do it automatically is much simpler, faster, and takes human error out of the equation for all future products.

    If you wan't to do it that way, that's great. That's your choice. I don't care. We choose the way that's simpler, faster, and less likely to have a mistake down the road. Not sure why you feel the need to come here and convince us the more complicated, slower, more error-prone way is better.

  19. Roy Ho
    Member
    Posted 11 months ago #

    @Tevya - don't draw to your own conclusions. I am not asking you to use this method or that method. I am also not comparing which method is better. I am simply stating the fact it exists and it works.

  20. Tevya
    Member
    Posted 11 months ago #

    Oh, okay. Thanks for clarifying. I guess repeatedly coming back to it, in a thread that's all about universally disabling it, made it seem (at least to me) that you're trying to push it as a solution where it's not the kind of solution being sought here. My apologies if my responses were less-than kind in any way. You're right, it is an option.

  21. jimgrant
    Member
    Posted 11 months ago #

    That worked great but I still have text on my product pages that says "No Rating" can this be removed also?
    http://annedores.tybs.com/product/mustache-milk-chocolate/

  22. explainafide
    Member
    Posted 10 months ago #

    The add_filter code snippet worked a treat! Thanks

  23. Daniel McClintock
    Member
    Posted 9 months ago #

    @Tevya, in the case of hundreds of products, one can set a custom number of products for display per page under the "screen options" tab at the top in order to do what @splashingpixels.com recommended. I personally like to limit the number of plugins being used if at all necessary.

  24. Tevya
    Member
    Posted 9 months ago #

    "if at all possible" you meant, not "necessary."

    Yes, that's an option too. However, depending on the amount of products (have one store I manage that has several thousand), it's still not practical. If you have it load to much WP and/or your browser can slow to a crawl or even crash. Keep it to a lesser amount, and you're still having to repleat the process over and over.

    As I said above, it's certainly an option, and its a good option if you really want to avoid using a plugin and don't mind the extra work and remembering to turn off comments/reviews on every product. However, the simplest, easiest option, from an admin/sho- manager standpoint, is the plugin I recommended.

  25. hartmutnz
    Member
    Posted 7 months ago #

    Thanks Tevya, I also wanted to disable product reviews, and this works for that, I just added the "disable comments plugin" and it is easy, fast and efficient. It is a better way that editing functions.php because in case of updates that falls flat.. anyway, thanks.

  26. Jamesdesauvage
    Member
    Posted 6 months ago #

    Thanks for the info :) helped greatly !

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags