Missing Scheduled Imports Tab

Home Forums Calendar Products Events Calendar PRO Missing Scheduled Imports Tab

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1176336
    Rodrigo Torres
    Participant

    Hi! 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.”

    #1176706
    Nico
    Member

    Hey 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,
    Nico

    #1176710
    Rodrigo Torres
    Participant

    Hi Nico,

    I don’t see where I set an import as recurring. Can you specify where I would see that?

    Thanks!

    #1177898
    Nico
    Member

    Sure 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,
    Nico

    #1177910
    Rodrigo Torres
    Participant

    I want to select CSV and do a recurring import from a URL.

    #1178648
    Nico
    Member

    Thanks 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,
    Nico

    #1182852
    Nico
    Member

    Hey 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,
    Nico

    PS: take a look at this article on cron jobs → https://tommcfarlin.com/wordpress-cron-jobs/

    #1182960
    Rodrigo Torres
    Participant

    Hi 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?

    #1183886
    Nico
    Member

    Thanks 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,
    Nico

    #1194488
    Support Droid
    Keymaster

    Hey 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

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Missing Scheduled Imports Tab’ is closed to new replies.