Woocommerce Product XML / CSV Feed Export

A WordPress plugin to create cached and on the fly export feeds of Woocommerce products

This wordpress plugin can be installed as any other wordpress plugin. Installation is simple.

  1. Extract the zip file you have downloaded.
  2. Login to your administration panel (ex. http://www.yourdomain.com/wp-admin).
  3. Go to PluginsAdd New.
  4. At the top of the page click the "Upload Plugin" link
  5. Click choose file (or what your browser uses to navigate to your files)
  6. From the extracted files of step one (1) navigate to and select woo_xml_feed.zip and click "Install Now"
  7. You may be asked to confirm your wish to install the Plugin.
  8. If this is the first time you've installed a WordPress Plugin, you may need to enter the FTP login credential information. If you've installed a Plugin before, it will still have the login information. This information is available through your web server host.
  9. Click Proceed to continue with the installation. The resulting installation screen will list the installation as successful or note any problems during the install.
  10. If successful, please click Activate Plugin to activate it.

Upon installation, an example feed will be created.

In order to use the Woocommerce Product XML / CSV Feed Export plugin, please navigate from your WordPress administration panel to "WOO Feeds and click the "Add New" Button as you would normally do in order to add a post, product etc."

Options
  1. Title: Add a title (this is just for you and it will not be output anywhere)
  2. Feed Header: Anything you would like to prepend on you feed output
  3. Feed Main: The main content, the loop of the products data
  4. Feed Images: This will replace the {images} tag on the main feed content. The {image} can be used here.
  5. Feed Attributes: This will replace the {attributes} tag on the main feed content. The {attribute_label} and {attribute_value} can be used here.
  6. Feed Footer: Anything you would like to append on you feed output
  7. Availability message when in stock: Message to display when the product is in stock. This will replace the {stock_status} tag.
  8. Availability message when NOT in stock: Message to display when the product is out of stock. This will replace the {stock_status} tag.
  9. Default brand: Set the brand to display when non is set on the product.
  10. Display product when out of stock: Uncheck this to skip out of stock products.
  11. Display parent categories: It will display parent categories of the main product category.
  12. Seperator character for parent categories: This character(s) will display between the parent categories
  13. Cached filename: Enter the filename and path of the auto created feed file
  14. Output as plain text / remove xml headers: ThHe plugin by default adds xml headers. Check this to remove the XML headers.
  15. Save cached file on publish/update: Check this to force the plugin create the cached file on save.
  16. You are ready to go! *** Publish *** your feed

You may create multiple feeds and edit them at any time.

The plugin creates a daily wp cron to refresh the cached file. Use a plugin as WP Crontrol if you would like to edit the cron.

Many hooks are in place. Please search the code for a full list. Below are some of them with examples.

Filters

Add a replaceable tag for header and footer, eg.

add_filter( 'wxf_gensearch', 'my_wxf_gensearch');
function my_wxf_gensearch($search, $post_id) {
  $search[] = '{title}';
  return ($search);
}
add_filter( 'wxf_genreplace', 'my_wxf_genreplace');
function my_wxf_genreplace($replace, $post_id) {
  $replace[] = get_the_title($post_id);
  return ($replace);
}
  1. Does it work with variable products?

    Yes, it does.

  2. Can I use it to import products?

    No, you can not.

  3. Will it export my custom meta?

    Yes, it can do this.

1.1.14 6 Jan 2023
  • Feature: Added the shipping class label tag
  • Fix: On some case the product meta list needed to be json decoded
1.1.13 16 Dec 2022
  • Fix: availability message value match flexibility
1.1.12 21 Nov 2022
  • Fix: better product stock management
1.1.11 31 Mar 2022
  • Fix: in some cases variations slugs were displaying instead of labels
1.1.10 05 Mar 2022
  • Fix: some options when editing the feed settings would not save if empty
  • Fix: Removed PHP 8.0 deprecation warning
1.0.9 04 Mar 2022
  • Fix: single product overrides could be edited but not be removed
  • Fix: "one product based on the parent for variable products" now checks for stock settings
1.0.8 16 Feb 2022
  • Feature: added backorder custom message
1.0.7 30 Jul 2021
  • Feature: added the option to add the parent product excerpt and description if the variation's does not exists
  • Feature: The file path can now handle directories
  • Fix: Checkboxes would not store unchecked status on save
1.0.6 03 May 2021
  • Feature: Added ajax XML generation
  • Feature: Added Facebook product feed XML tags
  • Feature: Added Facebook product feed XML sample entry
  • Fix: Condition to avoid various PHP notices and warnings
1.0.4 02 Apr 2019
  • Feature: Converted from select2 to selectWoo
  • Fix: Condition to avoid PHP warning for product brands
  • Fix: Decoding of url encoded attributes
1.0.3 03 Jun 2018
  • Fix: Removed Woocommerce v3.0+ deprecation warnings
1.0.2 09 Aug 2017
  • Feature: Added list with all scanned meta keys
  • Fix: Prevent error if brands plugin is not installed
1.0.1 02 May 2017
  • Feature: Woocommerce version 3.0.x support
  • Feature: Product taxonomies detection and tags, all product taxonomies are supported
  • Feature: Option to merge attributes
  • Feature: Include / exclude products by category
1.0.0 27 Mar 2017
  • Initial release

This plugin does not use any 3rd party libraries