Search Documentation

Can’t find a particular export field?

We’re adding new export fields with each Plugin update, if you think we’ve missed one please open up a new topic on the Support Forum and we’ll do our best to cook it in the next release.


Supported export fields

We’ve moved our listing of supported export fields and roadmap for new export columns for each export type to dedicated public Trello boards.

Please note the above listings are for Store Exporter Deluxe which supports all export types, the free Store Exporter Plugin supports the Product, Category and Tag export types only.


 

Adding custom fields

Store Exporter includes support for third-party developers to extend Store Exporter even further by adding their own custom Product fields and other Export Type fields.

In this tutorial we’ll use Store Exporter for WooCommerce, the same goes for Jigoshop and WP e-Commerce just replace the woo_, jigo_, wpsc_ prefixes. Add the following quotes to your new Plugin or Theme’s functions.php template file.

function woo_ce_custom_product_fields( $fields ) {
$fields[] = array (
'name' => 'author',
'label' => 'Author',
'default' => 1
);
return $fields;
}
add_filter( 'woo_ce_product_fields', 'woo_ce_custom_product_fields' );

The above snippet adds a new Product field to the Product options list on the Export screen for the Products export type. The ‘default’ property tells the exporter whether this field option should be ticked by default or left for the store owner to decide.

function woo_ce_custom_product_item_author( $product, $product_id ) {
$product->author = $product->post_author;
return $product;
}
add_filter( 'woo_ce_product_item', 'woo_ce_custom_product_item_author', 10, 2 );

The above snippet takes each $product object and adds the ‘author’ property to it assigning each Product with the value of the Post Author (post_author). We need to assign the priority and variables in the last line since we’re passing two variables through the filter.

That’s it for adding custom Product fields.


Troubleshooting

See our complete listing of troubleshooting suggestions on the Store Exporter Deluxe usage document.