AliExpress Dropshipping forum - Setup of additional time intervals and alternative file name

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

  • This topic has 1 reply, 2 voices, and was last updated 1 year ago by Admin.
  • Author
    Posts
  • Nadia Kerr
    Participant
    #8905

    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):

    array(
    ‘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);
    break;

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

    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.

    Admin
    Keymaster
    #8906

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

  • You must be logged in to reply to this topic.

Turn Your Store Into

Cash Machine

Enter email and get FREE eBook with

best dropshipping tips for 2020

guide box

By entering your email, you agree to receive marketing

emails from Ali2woo. You can unsubscribe any time.

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

Download our free ebook:

Turn Your Store Into Cash Machine