Average rating is showing like this – 4.3801652892562 in widget

Front Support Plugins Support WP Customer Testimonials Average rating is showing like this – 4.3801652892562 in widget

This topic contains 3 replies, has 2 voices, and was last updated by  Hesham 3 years, 5 months ago.

  • Author
    Posts
  • #3608

    Hello,

    in my widget, my average rating is showing like this – 4.3801652892562

    I want only 2 digits after decimal point. i got following coding line under widget_sras.php and think, i need to change in these lines.

    “// remove the extra digits from the rating value
    $display_rating_value = number_format($rating_value, 2, ‘.’, ”);”

    Please let me know the changes to do the same.

    Thanks

  • #3610

    Hesham
    Keymaster

    Please, provide a link to your site where I can see the issue.

    Also, a question.. Are you using the latest version of the plugin?

  • #3631

    I’m using wp-customer-testimonials-0.1.5.8 version.

    Also, the link is http://www.sitarambhartia.org/landing/nps-survey/

    • #3632

      Hesham
      Keymaster

      The latest version is 0.1.6.1, would you please upgrade first and see if this solve the issue.

      P.S. Actually the rating value was removed from this last update.

The forum ‘WP Customer Testimonials’ is closed to new topics and replies.