0

I want users to give their Reviews about the products. Currently have woocommerce installed in my wordpress site . I want to add the comments at the bottom of the Woocommerce shop page (not single product page), below last product in the shop page.

I have tried using wp_list_comments( ); But all it is not showing comments.

Thanks for your help in advance.

0

Woocommerce itself has an option to view comments from dashboard without editing the core. Please Read the documentation fully. But, You need to code little to view the comment option only on shop page. (Suggestion: Enable comment in all pages and do display:none on #comment where ever you don't need it.)

0

Make sure comments are enabled on the Shop Page.

Then hook the wp_list_comments(); at woocommerce_after_shop_loop.

Something like this;

function display_comments() {
    if (is_shop()) {
        wp_list_comments(array( 'format' => 'html5' ));
    }
}
add_action('woocommerce_after_shop_loop', 'display_comments');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.