Do you need to export your orders into a CSV? Maybe even automatically?
Well, WooCommerce Order/Customer CSV Export is what you need.

The plugin documentation already has an extensive developers documentation which teach you how to change the file name, reorder columns, adding columns, and much more.

Here instead is an additional snippet to change the date format.
By default the plugin exports the date in the format Y-m-d H:i:s. What if you want to change it?

Write a snippet!

Open the file functions.php located in wp-content/themes/your-theme-name/ and add this code at the end of the file:

This code will change the date format to d/m/Y. You can use any other format, here you can find the formatting options.

2 replies
  1. Jon
    Jon says:

    Would you be able to show how to combine the Billing First Name and Billing Last Name into a single field called “Billing Name”?

    Reply
    • Nicola Mustone
      Nicola Mustone says:

      Hi Jon,
      You can find many snippet examples here. You can start there to get an idea about how to change existing columns by renaming them.

      From that, you should unset the first and last name columns and add a new column for the Billing Name.

      Reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

You have to agree to the comment policy.

This site uses Akismet to reduce spam. Learn how your comment data is processed.