Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author YITHEMES

    (@yithemes)

    Hello there,
    testing this feature also on the official live demo (where you can launch a sandbox witha click) the issue is not there.
    Do you have some Woo templates modified in your child theme?

    Thread Starter joel

    (@joel2019)

    I’m afraid not.

    The only custom change we did is provided by you guys.
    We wanted to show 5-star rating even if no reviews were added to a certain product.
    You provided us with a custom ywar-rating.php file.

    File contents:

    <?php
    /**
    * Single Product Rating
    *
    * @author YITH
    * @version 3.6.0
    */

    if ( ! defined( ‘ABSPATH’ ) ) {
    exit; // Exit if accessed directly
    }

    global $product;
    $YWAR_AdvancedReview = YITH_YWAR();

    if ( get_option( ‘woocommerce_enable_review_rating’ ) === ‘no’ ) {
    return;
    }

    $product_id = yit_get_prop($product, ‘id’);
    $review_count = $YWAR_AdvancedReview->get_reviews_count( $product_id );
    $rating_count = $review_count;
    $average = $YWAR_AdvancedReview->get_average_rating( $product_id );

    if ( apply_filters( ‘yith_ywar_display_rating_stars_condition’, $rating_count >= 0, $rating_count ) ) : ?>

    <div class=”woocommerce-product-rating”>
    <div class=”star-rating” title=”<?php printf( esc_html__( ‘Rated %s out of 5’, ‘yith-woocommerce-advanced-reviews’ ), $average ); ?>”>
    <span style=”width:<?php echo( ( $average / 5 ) * 100 ); ?>%”>
    <strong class=”rating”><?php echo esc_html( $average ); ?> <?php printf( esc_html__( ‘out of %s5%s’, ‘yith-woocommerce-advanced-reviews’ ), ‘<span>’, ‘</span>’ ); ?>
    <?php printf( _n( ‘based on %s customer rating’, ‘based on %s customer ratings’, $rating_count, ‘yith-woocommerce-advanced-reviews’ ), ‘<span class=”rating”>’ . $rating_count . ‘</span>’ ); ?>
    </span>
    </div>

    <?php if ( comments_open() ) : ?>
    <?php $customer_reviews_text = apply_filters( ‘ywar_customer_reviews_text’, _n( ‘%s customer review’, ‘%s customer reviews’, $review_count, ‘yith-woocommerce-advanced-reviews’ ), $review_count ); ?>

    (<?php printf( $customer_reviews_text, ‘<span class=”count”>’ . $review_count . ‘</span>’ ); ?>)
    <?php endif ?>

    </div>
    <?php endif; ?>

    Theme Author YITHEMES

    (@yithemes)

    No this can’t be related…
    but I can see the zoom icon not the same as proteo… so maybe some plugin is conflicting?
    Do you have plugins to improve image galleries and sliders?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Image zoom + lightbox effect on detailpage’ is closed to new replies.