Hey @elchavodel8,
Hope you’re well.
MarketPress doesn’t provide comments feature out of the box. You need to custom coding to implement that on products pages.
Cheers,
Oguz
hello I was able to add ‘comments’ in marketpress.php now I have the option to enable comments in edit products,
comments_template (true); in single.php but I do not see the comment period.
Any help? 🙂
Hey @elchavodel8,
Hope you’re well.
MarketPress force to keep comments closed so only adding comments_template function will not work. You can change that from wordpress-ecommerce/includes/public/class-mp-public.php file 134.line, there is function which name is disable_comments_on_store_pages. Replace that function content with this function content;
public function disable_comments_on_store_pages( $open, $post_id ) {
if( $this->page_in_store_pages( $post_id ) ){
$open = false;
}
if (get_post_type($post_id) == 'product'){
$open = true;
}
return $open;
}
Then it will start to show comments on product pages. But keep in mind this is not absolute solution your changes will be reverted once plugin updated.
Cheers,
Oguz
Hello, thank you very much, it worked. you are a genious.