Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #980833

    Hi,

    in my enfold installation, actually the review stars in the additional tab are shown double:
    Double Review Stars

    I already checked the referring template files single-product-reviews.php

    if ( $account_page_url = wc_get_page_permalink( 'myaccount' ) ) {
    						$comment_form['must_log_in'] = '<p class="must-log-in">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a review.', 'woocommerce' ), esc_url( $account_page_url ) ) . '</p>';
    					}
    
    					if ( get_option( 'woocommerce_enable_review_rating' ) === 'yes' ) {
    						$comment_form['comment_field'] = '<div class="comment-form-rating"><label for="rating">' . 						esc_html__( 'Your rating', 'woocommerce' ) . '</label><select name="rating" id="rating" aria-required="true" required>
    							<option value="">' . esc_html__( 'Rate&hellip;', 'woocommerce' ) . '</option>
    							<option value="5">' . esc_html__( 'Perfect', 'woocommerce' ) . '</option>
    							<option value="4">' . esc_html__( 'Good', 'woocommerce' ) . '</option>
    							<option value="3">' . esc_html__( 'Average', 'woocommerce' ) . '</option>
    							<option value="2">' . esc_html__( 'Not that bad', 'woocommerce' ) . '</option>
    							<option value="1">' . esc_html__( 'Very poor', 'woocommerce' ) . '</option>
    						</select></div>';
    					}
    					$comment_form['comment_field'] .= '<p class="comment-form-comment"><label for="comment">' . esc_html__( 'Your review', 'woocommerce' ) . '&nbsp;<span class="required">*</span></label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true" required></textarea></p>';

    and product_snippet_review.php

    function editor_element($params)
    		{
    			$params['innerHtml'] = "<img src='".$this->config['icon']."' title='".$this->config['name']."' />";
    			$params['innerHtml'].= "<div class='avia-element-label'>".$this->config['name']."</div>";
    			
    			$params['innerHtml'].= "<div class='avia-flex-element'>"; 
    			$params['innerHtml'].= 		__( 'Display and allow reviews for this product. Needs to enable reviews in advanced tab.', 'avia_framework' );
    			$params['innerHtml'].= "</div>";
    			
    			return $params;
    		}

    and cannot find the passus which dublicates the rating stars. Could you kindly help?

    I have also the same issues as described in the forum post of another user that the review tab will not be shown until i add the comment element to my product page. Could that be the reason for the doubled stars?

    comment_element

    no comment element activated

    Best Regards
    Tim

    #981396

    No Chance to get an answer?

    #981623

    Hi,

    Thank you for using Enfold.

    Where can we see the issue? Please provide a link to the actual product page with the reviews form.

    Best regards,
    Ismael

    #981955

    Link attached. There you can also see the second issue from my another post (no price displayed)

    #982908

    Hi,

    Thanks for the update.

    Use this css code to remove the second star.

    #top #review_form p.stars:nth-child(2) {
        display: none;
    }

    The price is displaying properly when I check.

    Best regards,
    Ismael

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.