Home › Forums › Calendar Products › Events Calendar PRO › Missing Scheduled Imports Tab
- This topic has 10 replies, 4 voices, and was last updated 9 years, 5 months ago by
Rodrigo Torres.
-
AuthorPosts
-
October 13, 2016 at 4:54 pm #1176336
Rodrigo Torres
ParticipantHi! Very excited to start using Aggregator, however, I seem to be missing the “Scheduled Imports” tab under Events>Import.
I purchased Aggregator, updated both TEC and TEC PRO to 4.3. I’ve entered the Aggregator License.
Events>Import is only showing “New Import” and “History.”
October 14, 2016 at 10:16 am #1176706Nico
MemberHey Rodrigo,
Thanks for getting in touch with us! Glad to help you on the forums as well 🙂
The “Scheduled Imports” tab will only show if you have at least one active schedule import. So just go ahead and create a new import, set it as recurring and let me know if the tab shows for you.
Best,
NicoOctober 14, 2016 at 10:24 am #1176710Rodrigo Torres
ParticipantHi Nico,
I don’t see where I set an import as recurring. Can you specify where I would see that?
Thanks!
October 17, 2016 at 1:10 pm #1177898Nico
MemberSure Rodrigo, just check this article describing how to do so → Event Aggregator: import from feed or URL.
Please let me know if that helps,
Best,
NicoOctober 17, 2016 at 1:19 pm #1177910Rodrigo Torres
ParticipantI want to select CSV and do a recurring import from a URL.
October 18, 2016 at 2:05 pm #1178648Nico
MemberThanks for clarifying Rodrigo!
Unfortunately scheduled nor URL imports are not available for CSV imports. Let me touch base with the dev team to see if this is possible via a snippet!
I’ll send you a heads-up as soon as I get a reply from devs,
Best,
NicoOctober 25, 2016 at 4:03 pm #1182852Nico
MemberHey Rodrigo,
Thanks for the patience on this! It seems like scheduled CSV imports or CSV imports via a URL wouldn’t be super straightforward as a snippet. However, if you have a way to automate getting CSV files added to the Media Library of the site, then programmatically kicking off the CSV import may be doable. Do you think that’s possible?
Please let me know about it,
Best,
NicoPS: take a look at this article on cron jobs → https://tommcfarlin.com/wordpress-cron-jobs/
October 25, 2016 at 9:00 pm #1182960Rodrigo Torres
ParticipantHi Nico,
Thank you for getting back to me. I’ll check out the chron job article. Thanks!About the csv file, when I look at a media file, it’s just a file sitting on the server at /wp-content/uploads/2016/10/ so it’s easy for me to upload a file to overwrite with a simple batch file, so yes, that’s no problem. Just tested.
What’s the next step?
October 27, 2016 at 9:43 am #1183886Nico
MemberThanks for following up Rodri 🙂
I’ve touched base once again with one of our devs helping me on this customization. He gave me a sample code for you to work on top:
$file_id = FILE ID OF FILE IN MEDIA LIBARARY;$record = Tribe__Events__Aggregator__Records::instance()->get_by_origin( 'csv' );
$meta = array(
'origin' => 'csv',
'type' => 'manual',
'file' => $file_id,
'content_type' => 'tribe_events',
'column_map' => array(
'one',
'item',
'per',
'column',
'using',
'valid',
'event',
'field',
'names',
),
);$post = $record->create( 'manual', array(), $meta );
if ( ! is_wp_error( $post ) ) {
$record->queue_import();
}
It’s intended to be a starting point not as a final solution!
Please let me know if you can make it work for a test import at least,
Best,
NicoNovember 18, 2016 at 8:35 am #1194488Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Missing Scheduled Imports Tab’ is closed to new replies.
