Posted: November 16, 2014 at 12:59 pm
|
I have a CSV file with next years events to import – there are over 60 rows. Users can view events filtered by venue, so I need to link each event to a venue (in this file they are all the same venue). I also need to switch off the registration form as we are not using this yet. It will be extremely tedious to have to go into every event and manually add the venue and switch off the registration. Can you offer an alternative? We are running Event Espresso 3.1.36.1.P with Calendar add on (version 2.2.0.p) and Custom Template Display add on (version 1.0). WordPress version 3.9.2. Thanks, Ian |
|
You would need to make modifications to plugins/event-espresso/includes/event-management/csv_import.php. You would need to do an insert into the EVENTS_VENUE_REL_TABLE to link the event to the venue. For the registration form, you’ll want to put another line into the $strings_sql_array on line 150: |
|
Hi Sidney, Thanks |
|
Hi, I’ve had a look at the code and is line 224 the correct line? Cheers Dave |
|
Unfortunately, there isn’t a function_exists wrapper on that function in core, so you’d need to make the modifications directly in that core file, and it will get overwritten on update, so you would need to re-modify it after each update. Fortunately, we won’t be releasing very many more updates to 3.1, as it is nearing end-of-life as we add more of the additional functionality that was in 3.1 into EE4. One thing you could do is add the function_exists wrapper to the core code, then put your override of that function into a custom functions plugin. |
|
Hi, Can you be more specific on how I add the venue into the import? Can I a just add the venue_id after categories or do I have to enter it as some sort of meta data? I have tried both and it doesn’t work. |
|
You would need to add a new column on your csv that you want to import. You’ll want to settle on a format for putting multiple venue ids into that column, something like “12|42”. The cat import chunk of code was actually a better template: https://gist.github.com/sidharrell/1e7a3390f74d2cbb0065. Note that the venue ids will need to be in the system already for it to work. It will not create new venues. |
The support post ‘Importing events – need to add venue and switch off registration form’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.