AliExpress Dropshipping forum

Home AliExpress dropshipping forum Other plugins Gravity Forms Schedule Entries Export Setup of additional time intervals and alternative file name

  • Author
  • Nadia Kerr

    Great plugin!!! We wanted our task to run every 25mins and have it overwrite the previous file. To achieve this we made the following changes to your plugin:

    Added (where applicable in the index.php file):

    ‘label’ => __(“25 minutes”, $this->_slug),
    ‘value’ => ‘minutes’

    case ‘minutes’:
    //old logic only
    $next_time = strtotime(“+25 minute”, $current_timestamp);
    $local_time = GFCommon::get_local_timestamp($next_time);

    case ‘minutes’:
    $export_start = strtotime( ‘-24 minute’, $export_end );
    $time_frame_text = ‘+25 minute’;
    $time_frame_sec = 1500;

    And update the filename prefix from:
    $name_prefix = $feed_id . ‘-‘ . sanitize_title_with_dashes( $feed_data[‘meta’][‘export_feed_name’] ) . ‘-‘ . gmdate( ‘Y-m-d_g-i-s’, GFCommon::get_local_timestamp( time() ) ) . ‘_’;

    to: $name_prefix = ‘import_file’;

    Perhaps these code snippets may help some others wanting to achieve the same thing.


    Hello, thank you for sharing your solution with our community 🙂

  • You must be logged in to reply to this topic.
Download our free ebook: 
Dropshipping Guide 2019

Learn how to start, run, and grow an ecommerce business without inventory

Enter your email and download a totally free eBook "Dropshipping Guide 2019 for Business with AliExpress"

By entering your email we'll also send you marketing emails related to Ali2Woo, subject to our Privacy Policy. You can unsubscribe anytime.

Thank you!

Check Your E-mail & Start Downloading

Thank you for your interest in our e-book. We’ve sent you an email with a download link - simply click it, and start downloading