Home Forums WoodMart support forum Is it possible to display Reviews stars without Reviews on the product!

Is it possible to display Reviews stars without Reviews on the product!

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #613115

    chnprint
    Participant

    Can Reviews stars be displayed under the “Product Grid” without product Reviews!

    ★★★★★ 146 reviews
    ☆☆☆☆☆ No Reviews

    For example, like this?

    Attachments:
    You must be logged in to view attached files.
    #613310

    Luke Nielsen
    Keymaster

    Hello,

    Navigate to Theme Settings -> Product styles -> enable the “Show empty star rating” option: https://prnt.sc/EtHhYrkaGjDn

    Kind Regards

    #613382

    chnprint
    Participant

    ok, thanks!

    Another issue, I am unable to translate ‘product custom layout’ and keep circling around!

    #613387

    chnprint
    Participant

    I found 2 code snippets on the support forum that don’t work!
    Although the spinning disappeared, it seemed to ignore the translation directly!

    `add_action( ‘woocommerce_before_template_part’, function () {
    global $product;
    if ( wp_is_json_request() && ! $product ) {
    $random_product = new WP_Query(
    array(
    ‘posts_per_page’ => ‘1’,
    ‘post_type’ => ‘product’,
    )
    );

    while ( $random_product->have_posts() ) {
    $random_product->the_post();
    $product_id = get_the_ID();
    }

    wp_reset_postdata();

    $product = wc_get_product( $product_id) ;
    }
    } );

    add_action(‘init’, function () {
    if ( ! empty( $_SERVER[‘REQUEST_URI’] ) && false !== strpos( $_SERVER[‘REQUEST_URI’], trailingslashit( rest_get_url_prefix() ) ) && function_exists( ‘wc_load_cart’ ) && ! function_exists( ‘wc_print_notices’ ) ) {
    wc_load_cart();
    }
    }, 1000);

    #613394

    Luke Nielsen
    Keymaster

    Hello,

    Which plugin do you use for translation the site? If you use WPML, enable the translation for Layouts in WPML > Settings > Post Types Translation https://prnt.sc/bCd-_XWCxgUN you need to find Layouts check the box: https://prnt.sc/zqWStE_MM-wv

    Kind Regards

    #613400

    chnprint
    Participant

    I use WPML

    The ‘woodmart_1layout’ is in a translatable state

    Attachments:
    You must be logged in to view attached files.
Viewing 6 posts - 1 through 6 (of 6 total)