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!
- This topic has 28 replies, 2 voices, and was last updated 3 weeks, 4 days ago by Luke Nielsen.
-
AuthorPosts
-
November 18, 2024 at 7:34 pm #613115
chnprintParticipantCan Reviews stars be displayed under the “Product Grid” without product Reviews!
★★★★★ 146 reviews
☆☆☆☆☆ No ReviewsFor example, like this?
Attachments:
You must be logged in to view attached files.November 19, 2024 at 11:49 am #613310
Luke NielsenKeymasterHello,
Navigate to Theme Settings -> Product styles -> enable the “Show empty star rating” option: https://prnt.sc/EtHhYrkaGjDn
Kind Regards
November 19, 2024 at 1:40 pm #613382
chnprintParticipantok, thanks!
Another issue, I am unable to translate ‘product custom layout’ and keep circling around!
November 19, 2024 at 1:41 pm #613387
chnprintParticipantI 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);November 19, 2024 at 1:49 pm #613394
Luke NielsenKeymasterHello,
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
November 19, 2024 at 1:55 pm #613400
chnprintParticipantI use WPML
The ‘woodmart_1layout’ is in a translatable state
Attachments:
You must be logged in to view attached files.November 19, 2024 at 4:16 pm #613462
Luke NielsenKeymasterHello,
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
November 19, 2024 at 4:18 pm #613463
chnprintParticipantyes
November 20, 2024 at 7:08 am #613612
chnprintParticipantHi, 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
November 20, 2024 at 7:13 am #613615
chnprintParticipantSorry, it is the following URL
And there will be duplicate products!
November 20, 2024 at 3:13 pm #613808
Luke NielsenKeymasterHello,
Please update the theme to the latest version and recheck the issue.
Let me know the result.
Kind Regards
November 20, 2024 at 3:26 pm #613816
chnprintParticipantThe theme has been updated, but the layout still cannot be translated!
November 20, 2024 at 3:56 pm #613831
chnprintParticipantDo I need to wait for another 24 hours to receive the next reply?
November 20, 2024 at 6:34 pm #613942
Luke NielsenKeymasterHello,
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
November 20, 2024 at 6:47 pm #613946
chnprintParticipantThe 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.November 20, 2024 at 6:54 pm #613953
Luke NielsenKeymasterHello,
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
November 20, 2024 at 6:55 pm #613958
chnprintParticipantBefore this, I had already tested and closed all plugins,
Only keep wo+woodmart+wpml
Still unable to completeNovember 21, 2024 at 12:02 pm #614185
Luke NielsenKeymasterHello,
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
November 21, 2024 at 12:30 pm #614212
chnprintParticipantYes, you can operate freely
November 21, 2024 at 1:24 pm #614257
chnprintParticipanthttps://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!November 21, 2024 at 1:26 pm #614259
chnprintParticipantCall 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!
November 21, 2024 at 1:35 pm #614264
chnprintParticipantWhen 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!
November 21, 2024 at 6:47 pm #614423
Luke NielsenKeymasterHello,
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
November 21, 2024 at 9:20 pm #614448
chnprintParticipantOkay, 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.
November 22, 2024 at 3:43 pm #614730
Luke NielsenKeymasterHello,
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
November 22, 2024 at 4:14 pm #614749
chnprintParticipantok
November 25, 2024 at 1:00 pm #615494
Luke NielsenKeymasterHello,
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
November 25, 2024 at 6:09 pm #615702
chnprintParticipantHi, I tried in the theme – real-time preview, but it can display normal star ratings
https://prnt.sc/tz0seRDGYL0GBut previewing the Woodmart theme in real-time is not normal!
https://prnt.sc/CURcbE-4X27NPreview Hello Theme
https://prnt.sc/dOg02b7RVVgOUsing 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!
November 26, 2024 at 6:55 pm #616219
Luke NielsenKeymasterHello,
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
-
AuthorPosts
- You must be logged in to create new topics. Login / Register