Adding static Order Item fields to the Orders export type

Following up from our last Store Exporter Deluxe snippet about Adding static Order fields to the Orders export type we will add a static Order Item field to the Orders export type.

The 3 different Order Items Formatting rules (combined, individual and unique) require different WordPress Filters to be accessed in order to correctly format the export. We will cover each Order Items Formatting option separately; starting with the simplest.

First let’s add the static Order Item field to the Order fields list before looking at each Order Items Formatting rule.

View Code

Place Order Items within a grouped single Order row (combined)

Add the following PHP snippet to your current WordPress Theme’s functions.php file:

View Code

Place each Order Item within their own Order row (individual)

Add the following PHP snippet to your current WordPress Theme’s functions.php file:

View Code

Place Order Items on individual cells within a single Order row (unique)

Add the following PHP snippet to your current WordPress Theme’s functions.php file:

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

One thought on “Adding static Order Item fields to the Orders export type

  1. Pingback: Adding static Order 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 *