get_average_rating(), 1 ); $display_rate = $average_rate * 20; $count = $product->get_review_count(); $review_offcanvas = alpus_get_option( 'product_review_offcanvas' ); if ( ! comments_open() ) { return; } ?>

get_rating_counts(); $total_rating_value = 0; foreach ( $ratings_count as $key => $value ) { $total_rating_value += intval( $key ) * intval( $value ); } for ( $i = 5; $i > 0; $i-- ) { $rating_value = isset( $ratings_count[ $i ] ) ? $ratings_count[ $i ] : 0; ?>
get_id() ) ) ) : ?>
get_id() ) ) : ?>
>
' : ''; ?>
> have_comments() ? esc_html__( 'Submit Your Review', 'alpus' ) : sprintf( esc_html__( 'Be the first to review “%s”', 'alpus' ), get_the_title() ), /* translators: %s is product title */ 'title_reply_to' => esc_html__( 'Leave a Reply to %s', 'alpus' ), 'title_reply_before' => '', 'title_reply_after' => '', 'comment_notes_after' => '', 'label_submit' => esc_html__( 'Submit', 'alpus' ), 'logged_in_as' => '', 'comment_field' => '', ); $name_email_required = (bool) get_option( 'require_name_email', 1 ); $fields = array( 'author' => array( 'label' => __( 'Name', 'alpus' ), 'type' => 'text', 'value' => $commenter['comment_author'], 'required' => $name_email_required, ), 'email' => array( 'label' => __( 'Email', 'alpus' ), 'type' => 'email', 'value' => $commenter['comment_author_email'], 'required' => $name_email_required, ), ); $comment_form['fields'] = array(); foreach ( $fields as $key => $field ) { $field_html = '

'; $field_html .= '

'; $comment_form['fields'][ $key ] = $field_html; } $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 ) ); ?>

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

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