Support

Account

Home Forums Front-end Issues Rating Calculator

Helping

Rating Calculator

  • Hello, everyone,
    I have my own post type called “Reviews”, where I always have a post with the name of the product type (let’s understand e.g. CABLE A). For this post, I use the repeater to fill in the individual user reviews from the questionnaire.

    For example
    – Pavel
    – Text ratings
    – Number of stars

    I then list these ratings from the repeater for the product in the slider, which is not a problem. However, in the same block I also have the “Overall Rating”, which should be a numerical average of all the “star counts”.

    So the calculation is e.g.
    – (5 + 5 + 4 + 3) / 4 = 4.25

    I then link the product to this rating (post) using the “RELATIONSHIP” field. When using the while function for the repeater, can I somehow store and calculate these ratings somewhere and then write them into the “Overall Rating”?

    How to do that?

    Thank you for your plugin

    Robert
    mybelka.cz

  • I’m attaching a screenshot

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

You must be logged in to reply to this topic.