• Got a weird one here, might be a bug.

    When adding stats to a box score on the event page, it seems that when it is written to the database it is doubling the stat.

    For example:
    player 1 stat – 1 goal and 2 assists.

    On the event page, when entering the box stats 1 under goal, and 2 under assists. When you view the player list it reads 2 goals and 4 assists.

    When you try to make the adjustment on the player list, it does not adjust. When you put in the correct stat on the player list, this overrides all box scores. The Goals and assists on the player list do not auto-populate the overall points stat as well.

    Any ideas on why the box score would not register correctly? Maybe I am missing something.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Roch

    (@rochesterj)

    Hi!

    Thanks for reaching out!

    It looks like you are using Avada. What happens when you disable all plugins and any custom code? Also, what happens when you switch to twenty sixteen or rookie?

    Thanks!

    Kind Regards,
    -Roch

    Thread Starter Gianni Casagrande

    (@gianni-casagrande)

    Thanks for the response.
    I figured the issue out.

    The Sportspress config for player performance and statistics use the same value and slug name for goals, assists, PIM etc. So essentially, it’s adding both those numbers together giving you double the stat on the player list.

    To solve, you need to edit the player statistics to use different name and slug than player performance. You need to make sure the actual formula for the statistic is using the correct naming from player performance. Example: goals is G not $goals.

    Seems that it might be a good idea to differentiate the statistic from performance. Or at least be able to keep the same title and change the slug name.

    Roch

    (@rochesterj)

    Hi!

    Thanks for your message and for the suggestion.

    Indeed, this could be improved. I’ll run this idea by our dev team in our next meeting. Thanks a lot ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Data is wrong after inputting box scores on event page’ is closed to new replies.