Adding static Order fields to the Orders export type

Our Store Exporter DeluxeUsage document explains how to add custom export fields to the Product export type, this same technique can add custom export fields to other export types except Orders.

This tutorial will explain how to add a static export field to the Order export type. The Orders export type is made up of two types of export fields:

  1. Order fields – Export fields related to the Order
  2. Order Item fields – Export fields related to the Order Items that make up an Order

This tutorial will not cover adding static Order Item fields or dynamic Order fields (e.g. accessing, Terms, Posts or the WordPress database to retrieve a value), see Adding static Order Item fields to the Orders export type which covers this. A future tutorial will cover dynamic Order fields.

Adding a single static Order field

To add a new static Order field add the following PHP snippet to your current WordPress Theme’s functions.php file:

View Code

Adding multiple static Order fields

To add multiple static Order fields add the following PHP snippet to your current WordPress Theme’s functions.php file:

View Code
This entry was posted in . Bookmark the permalink.

3 thoughts on “Adding static Order fields to the Orders export type

  1. This works great for adding one static field! Do you have a sample snippet showing multiple static fields?

  2. Pingback: Adding static Order Item fields to the Orders export type | Visser Labs

Leave a Comment

Before you comment - Do you have a support request? If so, this is not the right place to post it. Please submit support requests for Premium Plugins on the Support page and in the community Support Forums for free Plugins.

Your email address will not be published. Required fields are marked *