Review Not Showing In Woocommerce Product

Posted in: Newsmag
Post count: 19

Hi

I just started using Woo-commerce on my site. Added one product for testing purpose but there is an issue.

http://top10wala.in/product/apple-iphone-6-specification-features-comparison/

When I click on review, it shows nothing instead of review option.

I have enabled comments in my wordpress setting.
I have enabled review by anyone in woocommerce setting
On my add product page as well, Review check box is slected.

Please look into the issue and tell me what is the issue.

Post count: 6535

Hi

I’ve tested the product review with the theme and work fine on my side: http://screencast.com/t/8qfOhYUPdV Try to deactivate the plugins, leave just Visual Composer and Woocommerce active, clear the cache and test again.
Let me know how it goes!

Thanks!

  • This reply was modified 10 years by Andrei L..
Post count: 23

I had the same problem plugin “Disqus”

Post count: 23

add to public_html/wp-content/themes/Newsmag/functions.php

add_action(‘the_post’, ‘sb_remove_woocommerce_disqus’, 10, 2 );
remove_action(‘pre_comment_on_post’, ‘dsq_pre_comment_on_post’);

function sb_remove_woocommerce_disqus( $post, $query ) {
global $post, $wp_query;

if ($query->is_main_query() && $post->post_type == ‘product’) {
remove_filter(‘comments_template’, ‘dsq_comments_template’);
}
}

  • This reply was modified 10 years by kaczy29.
Post count: 23

amendment !

add_action('the_post', 'sb_remove_woocommerce_disqus');
remove_action('pre_comment_on_post', 'dsq_pre_comment_on_post');

function sb_remove_woocommerce_disqus() {
	global $post, $wp_query;
	
	if (get_post_type() == 'product') { 
		remove_filter('comments_template', 'dsq_comments_template');
	}
}
  • This reply was modified 10 years by kaczy29.
  • This reply was modified 10 years by kaczy29.
  • This reply was modified 10 years by kaczy29.
Post count: 6600

Thanks @kaczy29!

Lucian C.

Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.