Join our new community forum for support & discussion

Join Now

Home Support Extensions Reviews Rating value

Rating value

  • Author
    Posts
  • Jave

    Hey,

    is there a way i can somehow manually change the rating value of a listing? Like people rated it with 4 stars but i want to make it 5 stars?

    Jave

    Because i’m trying to use another review plugin and want to populate the rating value by the other plugin dynamically into the hivepress rating value so people can still sort the listings by reviews

    Jave

    Could make it work with updating the post meta like

    update_post_meta( $post->ID, 'hp_rating', $otherreviewpluginvalue ); ?>

    Now i only have to make reviews visible even if there are zero ratings. If there are zero ratings it should say give “0” rating and still be sortable with the rating filter.

    I mean this: https://prnt.sc/Rm-LNjpwDpJm

    Any help with this maybe?

    yevhen developer

    Yes, it is possible to update the hp_rating meta value (you can also try removing the “protected” property from the “rating” attribute via the hivepress/v1/models/listing/attributes filter and the rating will become editable via the back-end listing form), but please note that it will be overridden if you add or remove a review for a listing. Displaying empty ratings is possible, but this requires overriding the /listing/view/listing-rating.php template part and removing the condition.

    Jave

    Thank you, could make both work 🙂

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

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.