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 29 posts - 1 through 29 (of 29 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.
    #613462

    Luke Nielsen
    Keymaster

    Hello,

    Is there any chance that you could give me access to the dashboard area so I can have a look at the settings on your website, please?

    Kind Regards

    #613463

    chnprint
    Participant

    yes

    #613612

    chnprint
    Participant

    Hi, please also help me check this issue!

    The product grid loads more when I click on load more!
    The loaded product will display empty stars even if there are Reviews!

    I uploaded a video

    #613615

    chnprint
    Participant

    Sorry, it is the following URL

    And there will be duplicate products!

    #613808

    Luke Nielsen
    Keymaster

    Hello,

    Please update the theme to the latest version and recheck the issue.

    Let me know the result.

    Kind Regards

    #613816

    chnprint
    Participant

    The theme has been updated, but the layout still cannot be translated!

    #613831

    chnprint
    Participant

    Do I need to wait for another 24 hours to receive the next reply?

    #613942

    Luke Nielsen
    Keymaster

    Hello,

    I see that you have translated the Layout – https://take.ms/DBIu0S, video – https://take.ms/6A8wB2

    Some text is not translated, so translate it via WPML -> String translation. You can also, send a screenshot of which area you are unable to translate so we can find appropriate areas in the WPML settings.

    Our documentation on how to use WPML with WoodMart – https://xtemos.com/docs-topic/how-to-use-wpml-with-woodmart/

    https://xtemos.com/docs-topic/how-to-make-woodmart-multilingual-with-wpml/

    Kind Regards

    #613946

    chnprint
    Participant

    The translated pages are not the same, I use the theme’s built-in ‘product rating’
    However, other language versions display the short code ‘cuserv-views’

    Additionally, the translation has not been completed and keeps looping around, which poses a problem!

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

    Luke Nielsen
    Keymaster

    Hello,

    Please confirm the permission to disable 3rd party plugins and enable the parent theme for testing. As soon as we complete the testing we will enable it all back.

    Kind Regards

    #613958

    chnprint
    Participant

    Before this, I had already tested and closed all plugins,
    Only keep wo+woodmart+wpml
    Still unable to complete

    #614185

    Luke Nielsen
    Keymaster

    Hello,

    1. Now I see when the review is fully translated it starts to work well – https://take.ms/xNhb7

    2. This banner – https://prnt.sc/yGvFk1QGwicp – translate via WPML -> String translation – https://prnt.sc/clZ01PU_5yuH

    3. As for the duplicated products in AJAX products tabs, may I disable plugins on my own for a while?

    I await your response.

    Kind Regards

    #614212

    chnprint
    Participant

    Yes, you can operate freely

    #614257

    chnprint
    Participant

    https://take.ms/xNhb7
    This video is still incorrect in Spanish, if you look at the size of the star rating,
    It is different from other language versions (it still uses the short code of the Reviews plug-in instead of the original woo Reviews star)

    You can try pausing the ‘Customer Reviews for WooCommerce’ plugin and you will see the difference!

    This indicates that the page has not been fully translated, or some parts are hindering the completion of the translation!

    https://prnt.sc/yGvFk1QGwicp
    This banner is completed through HTML blocks and has already been translated in WPML. We can ignore the issue with this banner!

    I have removed the ‘item layout’ in other language versions

    You can operate, re translate – automatic translation!
    After completing the translation correctly, it should be in pencil state instead of constantly looping around!
    We need to solve this problem and ensure that my subsequent layout updates will complete the translation page normally, turning it into pencil state!

    #614259

    chnprint
    Participant

    Call to a member function get_gallery_image_ids() on null /home/u136230372/domains/chnprints.com/public_html/wp-content/themes/woodmart/woocommerce/single-product/product-image.php:27

    I saw this in the WPML error log, it should be related to this!

    #614264

    chnprint
    Participant

    When I try to switch themes and perform translation layout operations, it can be translated correctly and it has already been completed!

    Now it is confirmed that the translation issue was caused by Woodmart!

    If necessary, you can try removing the layout from other language versions again and performing the translation action again!

    #614423

    Luke Nielsen
    Keymaster

    Hello,

    1. Unfortunately, bestselling does not work correctly with the load more button pagination: https://monosnap.com/file/vzyeqHmzQFnWFVK0Nklhh8X6bgx717, that is why the issue with duplicating occurs.

    2. As for the “get_gallery_image_ids()”, navigate to Theme Settings -> select another product in the “Select preview product for builder” field, https://take.ms/kDAd3

    3. Paste the code below into the “functions.php” file in your child theme –

    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) ;
    	}
    } );
    

    4. Tried to deactivate that plugin, but the reviews look the same – https://take.ms/eHNmG

    Let me know if I missed something.

    Kind Regards

    #614448

    chnprint
    Participant

    Okay, I can change the sorting method!
    The code is working, and now I can translate the layout correctly!
    (In the support forum, I found many issues with product layout translations. Is there a possibility that this will be fixed with a patch or in a future update?)
    
    Also, I recorded a video!
    It seems that the issue only occurs when “load more” is involved.
    
    On the single product review page, I set the avatar to be the first letter. After clicking “load more,” the avatars before and after don’t match. When I switch the theme, the avatars display correctly!

    However, I will ignore the avatar issue and optimize the avatars using a code snippet!
    
    When I click “load more” on the product grid, even if the products have reviews, they still show empty star ratings.
    Then, I set the page to display 20 products by default, showing all at once!
    (But this is just a temporary solution. As more products are added, pagination or “load more” will likely be required to handle it.)
    And when I switch the “by Popularity” or “by New Arrivals” AJAX tabs, the empty star ratings still appear!
    

    • This reply was modified 1 month ago by chnprint.
    #614730

    Luke Nielsen
    Keymaster

    Hello,

    1. I informed the developers about the need to add a fix to the theme.

    2. May I check on the default theme how that button works (in the reviews section that comes from the plugin)

    3. Change here the data source – https://monosnap.com/file/vzyeqHmzQFnWFVK0Nklhh8X6bgx717 to “All products”, then clear the cache and recheck the issue with the star rating.

    I await your response.

    Kind Regards

    #614749

    chnprint
    Participant

    ok

    #615494

    Luke Nielsen
    Keymaster

    Hello,

    After we looked deeper, we found that after disabling 3rd party plugins and enabling the parent theme the same issue happens even without using the AJAX product tabs, search results page – https://monosnap.com/file/bMwY9tShIEJHSvx03bqlaKbqkZXcWr and here is from the default theme – https://take.ms/YiPZEK

    https://take.ms/2CA7I -> https://take.ms/bD6SM

    So this is not something related to the theme itself.

    Kind Regards

    #615702

    chnprint
    Participant

    Hi, I tried in the theme – real-time preview, but it can display normal star ratings
    https://prnt.sc/tz0seRDGYL0G

    But previewing the Woodmart theme in real-time is not normal!
    https://prnt.sc/CURcbE-4X27N

    Preview Hello Theme
    https://prnt.sc/dOg02b7RVVgO

    Using Woodmart, I found that the product archive page seems to be displaying normally!

    I know it may not be a topic issue! I’m just confused about this question!

    #616219

    Luke Nielsen
    Keymaster

    Hello,

    Sorry for the delay.

    Could you please check the preview of the same products? Because in your screenshots the products are different: https://prnt.sc/CURcbE-4X27N, https://prnt.sc/dOg02b7RVVgO

    I await your response.

    Kind Regards

Viewing 29 posts - 1 through 29 (of 29 total)