• Resolved clip1492

    (@clip1492)


    Does Antispam Bee detect and filter review submissions created by WooCommerce product reviews?

    If not, is there a recommended workaround (hook, filter, custom code) to make Antispam Bee handle those reviews as well?

    Thanks in advance for your help and advice.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor Torsten Landsiedel

    (@zodiac1978)

    Hi @clip1492

    Does Antispam Bee detect and filter review submissions created by WooCommerce product reviews?

    Technically those are still comments and it could work. But it depends a lot on the theme handling those reviews. If you can post a link to your shop (or at least to the -hopefully free- theme) I can take a look and/or test it myself, if it works.

    All the best
    Torsten

    Thread Starter clip1492

    (@clip1492)

    Hi Torsten,

    You can test it here: https://www.temporary-url.com/6984 (this is a masked URL since the site in question contains 18+ content)

    Please note that YITH Advanced Reviews is also installed, and the theme is Bricks Builder.

    I checked and WooCommerce product reviews are stored as regular comments (comment_type = ‘review’, linked to post_type = ‘product’).

    So yes, they’re technically normal comments — I’ll wait for your test results to see if Antispam Bee filters them correctly. This could also help other Woo store owners, and maybe you could mention WooCommerce reviews compatibility in the plugin features.

    Best,

    Fran

    • This reply was modified 1 year ago by clip1492.
    Plugin Contributor Torsten Landsiedel

    (@zodiac1978)

    Hi @clip1492

    I can see the honeypot in the HTML markup, so ASB seems to work correctly.

    If you want to be 100% sure it works, you can enable “BBCode links are spam” and try something like this as comment:

    [url]https://en.wikipedia.org[/url]
    [url=https://en.wikipedia.org]English Wikipedia[/url]

    This should be marked as spam with the correct reason (if reason is saved).

    The reason we don’t say it is compatible with Woo in general is that many themes/plugins modify this area which often breaks our implementation. For example: sometimes they allow to star review without adding a review text or add more items, use AJAX, etc. which break our code.

    All the best
    Torsten

    Plugin Contributor Torsten Landsiedel

    (@zodiac1978)

    This should be marked as spam with the correct reason (if reason is saved).

    If you try this with your own account/email, remember to delete this spam review (if local db feature is active) – otherwise all your comments are now spam, as one of your comment is marked as spam … 😉

    Thread Starter clip1492

    (@clip1492)

    **** READ THE SECOND TEST ON THE NEXT COMMENT BELOW, THE PLUGIN EFECTIVELY WORKS ON WOO REVIEWS ***

    Sadly it was not filtered and the comment with the wikipedia links was passed as valid through the woocommerce reviews form. “BBCode links are spam” was checked in.

    I guess nothing I can do except enable Google captcha on the form.

    • This reply was modified 1 year ago by clip1492.
    • This reply was modified 1 year ago by clip1492.
    Thread Starter clip1492

    (@clip1492)

    Wait, yess!!! It works, on the comment before I was testing while logged as admin, and with “Trust aproved commenters” enabled, so the spam test comment passed.

    Now I’ve retested it while unlogged and from a private browser window, and the comment was efectively filtered.

    Thanks, everything is clear now and I can confirm that the plugin filters Woocommerce Reviews, even with plugins like YITH advanced reviews.

    • This reply was modified 1 year ago by clip1492.
    • This reply was modified 1 year ago by clip1492.
    • This reply was modified 1 year ago by clip1492.
    Plugin Contributor Torsten Landsiedel

    (@zodiac1978)

    Great! Thanks for reporting back! 🚀

    Thread Starter clip1492

    (@clip1492)

    After another look, I realized that the spam product review was indeed detected by the plugin, since the Spam counter on the Dashboard increased — that’s when I quickly wrote my previous reply, without further testing.

    However, it turns out that the product review remains published and is not actually marked as spam. Only the Dashboard counter seems to update.

    So my question is: have you tested whether WooCommerce reviews are effectively marked as spam? I can confirm they’re detected by the counter, but the actual spam management on the comment itself fails with WooCommerce reviews — possibly because they use slightly different metadata, which should be easy to support.

    Best,

    Fran

    • This reply was modified 1 year ago by clip1492.
    Thread Starter clip1492

    (@clip1492)

    if ( $commentdata['comment_type'] === 'review' && get_post_type( $commentdata['comment_post_ID'] ) === 'product' ) {
    do_action( 'spam_comment', $comment_ID );
    }

    Thread Starter clip1492

    (@clip1492)

    Apologies for so many posts.. After testing using Twenty theme with YITH plugin deactivated, product reviews are marked as spam.

    You can close this support thread. Thanks

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Filtering Woocommerce product reviews’ is closed to new replies.