• Resolved brunoclaessens

    (@brunoclaessens)


    Hi,
    To start the sportpress on our new website (a great plug-in !!) I started importing players (via a csv).
    Later when I imported matches (via csv) system created all the players again.
    So what I understand is that you can not import matches with all the players if you have the players already in the system. Or is there a workaround?
    IF import/update possibilities would be much better this plug-in is unbeatable.
    But like with players you can not import nrs, link to picture,….
    Also with matches you can not import all info….it’s a pitty
    All import plugin is also no solution…..
    Is there a plugin that can handle this ?

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

    (@rochesterj)

    Hi brunoclaessens!

    I’m sorry for the delay on this one.

    If you still need help with this, please kindly upload your CSV file to pastebin or to your site and send us a link to it. It’s probably an issue with the CSV formatting.

    Thanks!

    Thread Starter brunoclaessens

    (@brunoclaessens)

    Hi Roch,

    I don’t think it’s a problem with the csv because the matches and the players were nicely imported in the matches.
    The problem was that when i checked the playersdatabase that also players were imported while tey were already in.
    In summary
    1- i imported clubs
    2- imported players
    3- imported matches, with exact name clubs and exact name players and players were created again in players.
    Thanks for your attention.

    Roch

    (@rochesterj)

    Hi there!

    Thanks for your reply.

    That definitely looks like an issue in your CSV 🙂

    The events importer looks for players with the same name as players in your import:
    https://github.com/ThemeBoy/SportsPress/blob/master/includes/admin/importers/class-sp-event-importer.php#L370

    So they are only created (line 394) if there are no posts (player profiles) with the same title (player name).

    Thanks!

    BTW: I could be wrong though, but it’s just more efficient if we look at what you are doing and try to reproduce it, since it works fine in other instances.

    • This reply was modified 4 years ago by Roch. Reason: small addendum
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Import/update matches’ is closed to new replies.