Okay
  Public Ticket #2892915
Export image url
Closed

Comments

  •  1
    zpeti started the conversation

    I want to be able to export all events, make edits in csv format and then reimport them.

    However, I lose all images on reimport. 

    Can you explain what the image IDs mean in the csv? Is it possible to replace them with the media library url (/content/...) so that the images are reimported?

  •  1
    zpeti replied

    If I could chase this one... it's really important that I be able to bulk import and end up with functioning calendar including images.

  •   zpeti replied privately
  •  894
    Zhivko replied

    Sorry for the late reply.

    The csv epxport includes images ID numbers.

    Are you importing the file on the same server?


    Stachethemes Developer

  •  1
    zpeti replied

    Correct. So... if I manually create events, add images of each event using the wp media importer and export the CSV, I see a the image ID numbers as you say. But then if I delete all of the events in the calendar and reimport them using the same CSV and image IDs... it doesn't replace the images on the front end. Hope that makes sense

    Here is workflow:

    1. Create events with images

    2. Export to csv. Make edits to csv (title's, descriptions etc.)

    3. Import modified CSV to fresh calendar. I don't get any images on import

  •   zpeti replied privately
  •  1
    zpeti replied

    Just a nudge on this please

  •   zpeti replied privately
  •  894
    Zhivko replied

    I'll take a look now and check if I can reproduce this.


    Stachethemes Developer

  •  894
    Zhivko replied

    Okay this seems to be a bug caused by a typo... I don't know how I missed this.

    Open file:

    / stachethemes_event_calendar / assets / php / class.import.php

    on line 495 there is this code:

                            switch (is_numeric($images)) {

    replace $images to $image like this:

                            switch (is_numeric($image)) {

    and that should fix it.


    Stachethemes Developer