Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    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

    Thread Starter elchavodel8

    (@elchavodel8)

    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? ??

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    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

    Thread Starter elchavodel8

    (@elchavodel8)

    Hello, thank you very much, it worked. you are a genious.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘comments on products’ is closed to new replies.