Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Adam

    (@adamwtsupport)

    Hi @aqspring,

    Glad to hear that worked for you .

    If you’re happy with the plugin and the support provided, we’d really appreciate it if you could take a moment to leave us a review here.

    Your feedback helps us improve and motivates our team.

    Plugin Support Adam

    (@adamwtsupport)

    Hi @chlustanec,

    Thank you for your feedback, and we apologize for any inconvenience caused.

    To assist you better, we would like to understand the issue you faced with the plugin. Did you encounter any error messages or any specific issues while using it? This will help us look into the matter and assist you further.

    Your feedback is valuable to us and helps us improve the plugin. Could you please let us know which features did not work as expected or what exact issue you experienced?

    Looking forward to hearing from you.

    Plugin Support Adam

    (@adamwtsupport)

    Hi @aqspring,

    Thank you for reaching out to us.

    We understand your requirement. By default, the plugin exports the date and time in the YYYY-MM-DD HH:MM:SS format, and there is currently no built-in option to remove the seconds from the export.

    However, this can be achieved using a small code snippet. You can add the code snippet to your active child theme’s functions.php file or use a code snippets plugin. Once added, kindly try exporting again and it should give the expected format.

    add_filter( 'hf_alter_csv_order_data', 'wt_custom_order_export_date_format', 10, 2 );

    function wt_custom_order_export_date_format( $order_data, $args ) {

    $date_fields = array( 'order_date', 'paid_date' );

    foreach ( $date_fields as $field ) {
    if ( ! empty( $order_data[ $field ] ) ) {
    $timestamp = strtotime( $order_data[ $field ] );
    if ( $timestamp ) {
    $order_data[ $field ] = wp_date( 'Y-m-d H:i', $timestamp );
    }
    }
    }

    return $order_data;
    }
Viewing 3 replies - 1 through 3 (of 3 total)