Join our new community forum for support & discussion
Join NowHome › Support › Extensions › Reviews › Rating showing up on vendors list but not on listing page
Rating showing up on vendors list but not on listing page
-
AuthorPosts
-
nataliagzzh@gmail.com 2 years, 5 months ago
Hello,
I am using the reviews extension, and ratings (stars) appear on the vendor page
https://huntingmx.com/vendor/
but not on the listings page
https://huntingmx.com/cacerias/
how can I enable ratings to be displayed like attributes on the main or secondary block?This is strange, please make sure that there were no code changes that may cause this issue, also you can try refreshing the site cache and reject/approve one of the reviews in WordPress/Comments section, this should trigger the rating calculation.
nataliagzzh@gmail.com 2 years, 5 months agoI have two approved comments on different listings, I refreshed the cache and the only code I added is CSS and I tried taking it all away to see if something was overlapping or hiding the rating but it’s not that. I checked and the plugin is updated, what else could it be?
Please try to unapprove/approve one of the reviews and check the listing page, if this issue persists and there are no caching plugins that may cause this please send temporary WP access to support@hivepress.io and I’ll check it.
JorgeIII 2 years, 4 months agoHello,
I’ve looked further into the Extension code and it appears that the function get_rating() is returning false, hence the reviews cannot be shown in the listings page. I don’t quite understand the function get_rating from class-review.php. It receives $listing_ids as a parameter and then validates that these listing_ids are valid, but I’m not sure how is it trying to get the id from the listing in listing-ratings.php.Seems like this occurs with WordPress 5.5+ only, I guess they changed something in the “wp_comments” table schema. Will update this extension as soon as possible.
JorgeIII 2 years, 4 months agoThanks a lot! I can roll back to a previous WP version until then, there seems to be no issue with those. Until then, we’ll wait for the update.
BrownC 2 years, 3 months agoHi ihor,
Wanted to find out if there is an update on this thread? I’m having the same issue of reviews not showing on the listings page only on vendors page. I’m on WordPress 5.5.1
secondly, is it possible to allow reviews to posted by posting stars alone (as an option) rather than requiring followup text and having it as an option rather
I still can’t reproduce this locally, this issue seems to be specific to caching settings or hosting providers. You can send temporary WP access via email to support@hivepress.io to help to detect this issue, if there’s a bug it will be fixed.
It’s possible to make the review text optional, but this requires a custom code snippet.
dinesh123 2 years, 2 months agoHi
Im facing similar problem strars are shown in one ad and not in the other. Between two ratings I have stop seeing date added by locotranslet.
See https://paste.pics/AKV45
And
https://paste.pics/AKV52Please make sure that the second listing has approved reviews, I can’t reproduce this issue locally (this may be a caching issue specific to your site).
ben 1 year, 11 months agoHi I have the same problem could you please help me to fix that? I have tried couple of things but nothing seemed to work.
If possible send temporary WP access to support@hivepress.io and I’ll check this issue, I plan to update the Reviews extension and if there’s a bug it will be fixed.
yishaiyosef 11 months, 2 weeks agoCan you please update the previous question on making the review text not needed? To only have star ratings?
If a code snippet is needed, can you please help us with what code
Thanks.If you mean make review text not required then please try this PHP snippet. Please note that it may require further customizations, there may be other places where the review text is required.
add_filter( 'hivepress/v1/models/review/fields', function ($fields, $model){ $fields['text']['required']=false; return $fields; }, 1000, 2 ); add_filter( 'hivepress/v1/forms/review_submit', function ($form_args, $form){ $form_args['fields']['text']['required']=false; return $form_args; }, 1000, 2 );
-
AuthorPosts
New Reply
This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.