• Resolved Behi

    (@behzadr89)


    Hi there!
    is there any option that to shows “buyer-badge” in comment section of product page?
    for ex. if a user bought a product x and left comment for product x Wpdiscuz plugin can show a buyer-badge for that user.
    thanks.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support gVectors Support

    (@gvectorssupport)

    Behi,

    You can use the wpdiscuz_user_label hook for displaying the buyer badge.

    However, we want to let you know that for displaying the label you’ll need to join at least three tables, so it may make the loading of the website slower.

    Thread Starter Behi

    (@behzadr89)

    @gvectorssupport the link that you sent are in 404 condition.

    so please stop notice for this code

    add_filter("wpdiscuz_comment_author", function ($name, $comment) {
        if (wc_review_is_from_verified_owner($comment->comment_ID)) {
            $name .= " <em class='woocommerce-review__verified verified'>(" . esc_attr__("verified owner", "woocommerce") . ")</em>";
        }
       return $name;
    }, 10, 2);
    Plugin Support gVectors Support

    (@gvectorssupport)

    Now the link leads to the correct please. Please check it now.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘buyer-badge in comment section’ is closed to new replies.