get_review_count(); ?>

get_average_rating(), 2 ); if ( $average_rating > 0 ){ ?>

get_rating_count(); $rating_array = $product->get_rating_counts(); for ( $i=1; $i <= 5; $i++ ) { echo '
'; echo '
'.$i.esc_html(' Star','store-lite').'
'; if( isset( $rating_array[$i] ) ){ $percent = $rating_array[$i]/$review_count; $percent_friendly = number_format( $percent * 100, 0 ).'%'; echo '
'; echo '
'; echo '
'; echo esc_html( $percent_friendly ); echo '
'; }else{ echo '
'; echo '
'; echo '
'; esc_html_e('0%','store-lite'); echo '
'; } echo '
'; } ?>

get_review_count(); if ( $count && wc_review_ratings_enabled() ) { /* translators: 1: reviews count 2: product name */ $reviews_title = sprintf( esc_html( _n( '%1$s review for %2$s', '%1$s reviews for %2$s', $count, 'store-lite' ) ), esc_html( $count ), '' . get_the_title() . '' ); echo apply_filters( 'woocommerce_reviews_title', $reviews_title, $count, $product ); } else { esc_html_e( 'Reviews', 'store-lite' ); } ?>

    'woocommerce_comments' ) ) ); ?>
1 && get_option( 'page_comments' ) ) : echo ''; endif; ?>

get_id() ) ) : ?>
have_comments() ? __( 'Add a review', 'store-lite' ) : sprintf( __( 'Be the first to review “%s”', 'store-lite' ), get_the_title() ), /* translators: %s is product title */ 'title_reply_to' => __( 'Leave a Reply to %s', 'store-lite' ), 'title_reply_before' => '', 'title_reply_after' => '', 'comment_notes_after' => '', 'fields' => array( 'author' => '

' . '

', 'email' => '', ), 'label_submit' => __( 'Submit', 'store-lite' ), 'logged_in_as' => '', 'comment_field' => '', ); $account_page_url = wc_get_page_permalink( 'myaccount' ); if ( $account_page_url ) { /* translators: %s opening and closing link tags respectively */ $comment_form['must_log_in'] = ''; } if ( wc_review_ratings_enabled() ) { $comment_form['comment_field'] = '
'; } $comment_form['comment_field'] .= '

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