• Resolved intelmouse

    (@intelmouse)


    First of all, I want to thank you for the great plug-in.

    Everything works without a problem. Unlike post, on the Woocommerce product page reviews tab, I see no star rating display which should come just before the comment sections. How can I fix the problem?

    https://snipboard.io/DnMHpY.jpg

    Thank you.

    Best regards,
    Aaron

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

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

    (@gvectorssupport)

    Hi @intelmouse,

    As far as the average rating is already being displayed under the product name, the wpDiscuz doesn’t display the star rating before the comment form anymore.

    Thread Starter intelmouse

    (@intelmouse)

    I see. In my case, I have a long description, and it would be nice to show a star rating just before the review comment section begins.

    Is there a way to force display star rating function?

    Thank you.

    Plugin Support gVectors Support

    (@gvectorssupport)

    Hi Aaron,

    There isn’t any update safe way for this customization. However, we can provide you some solution.

    1. Open the wp-content/plugins/wpdiscuz/forms/wpdFormAttr/Form.php file
    2. Find the following function (lines: 379-392):

    public function displayRatingMetaBeforeCommentForm() {
            global $post;
            $content = "";
            if (!(class_exists("WooCommerce") && get_post_type($post) === "product")) {
                if (in_array("before_comment_form", $this->wpdOptions->rating["displayRatingOnPost"])) {
                    if ($this->ratingsExists) {
                        $content = $this->getRatingMetaHtml();
                    } else if ($this->getEnableRateOnPost()) {
                        $content = $this->getPostRatingHtml();
                    }
                }
            }
            echo $content;
        }

    3. Replace it with the following one:

    public function displayRatingMetaBeforeCommentForm() {
            global $post;
            $content = "";
                if (in_array("before_comment_form", $this->wpdOptions->rating["displayRatingOnPost"])) {
                    if ($this->ratingsExists) {
                        $content = $this->getRatingMetaHtml();
                    } else if ($this->getEnableRateOnPost()) {
                        $content = $this->getPostRatingHtml();
                    }
                }       
            echo $content;
        }
    Thread Starter intelmouse

    (@intelmouse)

    Thanks for the help! Have a great day!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Star rating on Woocommerce review tap is missing’ is closed to new replies.