-
AuthorPosts
-
July 4, 2018 at 1:20 am #980833
Hi,
in my enfold installation, actually the review stars in the additional tab are shown double:
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…', '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' ) . ' <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?
Best Regards
TimJuly 5, 2018 at 1:34 am #981396No Chance to get an answer?
July 5, 2018 at 3:01 pm #981623Hi,
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,
IsmaelJuly 6, 2018 at 10:18 am #981955Link attached. There you can also see the second issue from my another post (no price displayed)
July 9, 2018 at 2:40 am #982908 -
AuthorPosts
- You must be logged in to reply to this topic.