• Resolved daron4ever

    (@daron4ever)


    Hello,

    Your plugin has Comment Required option, but it could make confusing since Woocommerce’s review comment is mandatory required.
    So, could I disable ‘required” woocommerce review comment in the product page?

    I have a code for remove and could not find required disabling.
    add_filter( ‘woocommerce_product_tabs’, ‘sb_woo_remove_reviews_tab’, 98);
    function sb_woo_remove_reviews_tab($tabs) { unset($tabs[‘reviews’]);
    return $tabs;}

    Regards,

    • This topic was modified 6 years, 10 months ago by daron4ever.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author cusrev

    (@ivole)

    To be honest, I didn’t fully understand your question. Can you please clarify the question?

    Thread Starter daron4ever

    (@daron4ever)

    Woocommerce has the required comment field for review.
    And the star rating is optional.

    Your plugin seems to have the required star rating field.
    And the comment field is optional.
    I like your way than what woocommerce does.

    I would like to disable the required only for the comment field at the product pages.
    So, customer can give star rating only at the product pages.

    Plugin Author cusrev

    (@ivole)

    Thanks for the clarification. Now, it is clear.

    I tested submission of a review without a star rating and WooCommerce showed me an error message: “Please select a rating”. So, it seems that WooCommerce requires both a star rating and a comment.

    I will check if submission of empty reviews from product pages can be implemented in the future. For now, you can also check this quick solution: https://wordpress.stackexchange.com/questions/5708/does-wordpress-allow-blank-empty-comment-submissions-in-wordpress and see if it will work for you.

    I hope it helps!

    Thread Starter daron4ever

    (@daron4ever)

    The quick solution hide entire review field include star rating.
    I wish you add the function in the next update.
    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Comment Required’ is closed to new replies.