get_review_count(); $avg_rate_score = number_format( $product->get_average_rating(), 1 ); $rate_counts = blockpress_get_ratings_counts( $product ); if ( ! comments_open() || !function_exists('wc_review_ratings_enabled')) { return; } ?>

get_review_count(); if ($count && wc_review_ratings_enabled()) printf( _n( '%s review for %s%s%s', '%s reviews for %s%s%s', $count, 'blockpress' ), $count, '', get_the_title(), '' ); else esc_html_e( 'User Reviews', 'blockpress' ); ?>

5
'; echo fr_woo_rating_icons_html( $avg_rate_score, $review_count); echo '
'; } ?>
0; $rating-- ) : ?>
★'; } ?>
0
    'woocommerce_comments' ) ) ); ?>
1 && get_option( 'page_comments' ) ) : echo ''; endif; ?>

    get_id() ) ) : ?>
    have_comments() ? esc_html__( 'Add a review', 'blockpress' ) : sprintf( esc_html__( 'Be the first to review “%s”', 'blockpress' ), get_the_title() ), 'title_reply_to' => esc_html__( 'Leave a Reply', 'blockpress' ), 'comment_notes_after' => '', 'fields' => array( 'author' => '

    ' . ' ' . '

    ', 'email' => '', ), 'label_submit' => esc_html__( 'Submit', 'blockpress' ), 'logged_in_as' => '', 'comment_field' => '' ); if ( $account_page_url = wc_get_page_permalink( 'myaccount' ) ) { $comment_form['must_log_in'] = ''; } if (wc_review_ratings_enabled()) { $usercomment = ''; if(is_user_logged_in()){ $currentuser = get_current_user_id(); $usercomment = get_comments(array('user_id' => $currentuser, 'post_id' => $product->get_id())); } else{ $commentemail = (!empty($commenter['comment_author_email'])) ? $commenter['comment_author_email'] : ''; if($commentemail){ $usercomment = get_comments(array('author_email' => $commentemail, 'post_id' => $product->get_id())); } } if(empty($usercomment)){ $comment_form['comment_field'] = '

    '; } } $comment_form['comment_field'] .= '

    '; comment_form( apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form ) ); ?>